madlib-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Panagiotis Kanakakis <pkanaka...@di.uoa.gr>
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 <dvaldano@pivotal.io> wrote:
>Panagiotis,
>
>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:
>
>https://github.com/apache/madlib/blob/master/src/modules/declarations.hpp
>
>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.
>
>Best,
>
>Domino
>
>On Fri, Oct 11, 2019 at 10:36 AM Panagiotis Kanakakis
><pkanakakis@di.uoa.gr>
>wrote:
>
>> 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 <http://www.typeapp.com/r?b=15657>
>> On 11 Oct 2019, at 20:10, Nikhil Kak <nkak@pivotal.io> 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 <
>>> pkanakakis@di.uoa.gr> 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:
>>>>
>>>> https://github.com/apache/madlib
>>>>
>>>> The general shared header files are here:
>>>>
>>>>
>https://github.com/apache/madlib/tree/master/src/ports/postgres/dbconnector
>>>>
>>>> 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:
>>>> dev@madlib.apache.org
>>>>
>>>> Hope this answers your question.
>>>>
>>>> Best,
>>>>
>>>> Domino
>>>>
>>>> On Thu, Oct 10, 2019 at 5:00 AM Panagiotis Kanakakis <
>>>> pkanakakis@di.uoa.gr> 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
>>>
>>

Mime
View raw message