madlib-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Panagiotis Kanakakis <>
Subject Re: C Headers
Date Fri, 11 Oct 2019 18:21:05 GMT
Thank you very much for your extended explanation! So, it is impossible to make such an extension
without changing the c++ code? Also, could it be possible to make a wrapper on top of madlib's
postgres implementation and use it for my purpose?

⁣Get TypeApp for Android ​

On 11 Oct 2019, 21:10, at 21:10, Domino Valdano <> wrote:
>MADlib is an extension of postgres, written specifically to run on top
>postgres (or greenplum).  Because it makes many calls to the shared
>postgres library itself, relying on that to be there, the method you
>proposing would not work for another database unless you made
>modifications to madlib itself.
>The module-specific headers for madlib are in the src/modules
>here is a list of the top-level ones:
>But it sounds like what you're looking for are the postgres/greenplum
>headers that madlib includes.  In order to compile madlib, you need to
>the headers for one of those two databases installed on your system. 
>are also both also open source, you can find all of them on github as
>well.  But if you are replacing them with a different database then
>need to use headers from that new database... and modify each of
>current UDF's to call them somehow.
>On Fri, Oct 11, 2019 at 10:36 AM Panagiotis Kanakakis
>> Yes of course! My plan is to port a new db in madlib. So, I am
>> step by step the way madlib uses postgres. In many cases I see that
>> uses the create function as obj file that postgres supports. So, my
>idea is
>> to use the .so library in my code and call the udfs that are already
>> defined in addition with my custom code. Does this make sense ?
>> Get TypeApp for Android <>
>> On 11 Oct 2019, at 20:10, Nikhil Kak <> wrote:
>>> Hi Panagiotis,
>>> It would be great if you can give us a few more details about the
>>> problem you are trying to solve?
>>> - Nikhil
>>> On Fri, Oct 11, 2019 at 3:32 AM Panagiotis Kanakakis <
>>>> wrote:
>>>> Thank you very much for your reply! I have found all these headers.
>>>> thing that I am trying to do is to use the madlib shared library to
>>>> application and that's the reason I need the header files . I think
>that I
>>>> can't use the defined udfs if I don't have them. Am I wrong?
>>>> On 11/10/19 4:04 π.μ., Domino Valdano wrote:
>>>> Panagiotis,
>>>> All of the source code for MADlib is freely available, you can find
>>>> in the apache/madlib github repository:
>>>> The general shared header files are here:
>>>> Headers for specific modules are in other directories, if you need
>>>> just look in the appropriate module directory.
>>>> If you're interested in extending MADlib yourself, and/or
>>>> to the project, you may want to join the developers mailing list:
>>>> Hope this answers your question.
>>>> Best,
>>>> Domino
>>>> On Thu, Oct 10, 2019 at 5:00 AM Panagiotis Kanakakis <
>>>>> wrote:
>>>>> Hi,
>>>>> Is there any plan to release c headers for madlib shared library
>in the
>>>>> near future? If not, could you please propose a safe way to
>>>>> them?
>>>>> Thanks,
>>>>> Panagiotis
>>> --
>>> Thanks,
>>> Nikhil Kak

View raw message