madlib-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Domino Valdano <>
Subject Re: C Headers
Date Fri, 11 Oct 2019 18:10:24 GMT

MADlib is an extension of postgres, written specifically to run on top of
postgres (or greenplum).  Because it makes many calls to the shared
postgres library itself, relying on that to be there, the method you are
proposing would not work for another database unless you made significant
modifications to madlib itself.

The module-specific headers for madlib are in the src/modules directory,
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 have
the headers for one of those two databases installed on your system.  Those
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 you'd
need to use headers from that new database... and modify each of MADlib's
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 following
> step by step the way madlib uses postgres. In many cases I see that madlib
> 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 exact
>> 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. The
>>> thing that I am trying to do is to use the madlib shared library to my
>>> 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 it
>>> in the apache/madlib github repository:
>>> The general shared header files are here:
>>> Headers for specific modules are in other directories, if you need them
>>> just look in the appropriate module directory.
>>> If you're interested in extending MADlib yourself, and/or contributing
>>> 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 produce
>>>> them?
>>>> Thanks,
>>>> Panagiotis
>> --
>> Thanks,
>> Nikhil Kak

View raw message