Search Postgresql Archives

Re: Compiling C Extension Functions against PostgreSQL 12

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Adrian Klaver-4 wrote
> On 5/2/20 1:03 PM, TalGloz wrote:
>> Adrian Klaver-4 wrote
>>> On 5/2/20 12:39 PM, TalGloz wrote:
>>>> Adrian Klaver-4 wrote
>>>>> On 5/2/20 12:28 PM, TalGloz wrote:
>>>>>> I'm trying to upgrade from PostgreSQL 10 to 12 and I need to compile
>>>>>> all
>>>>>> my
>>>>>> manually created C extension functions against PostrgreSQL 12 before
>>>>>> starting the upgrade process. I have this Makefile that compiles
>>>>>> perfectly
>>>>>> the seal_diff_cpp.cpp C extension function against PostgreSQL 10:
>>>>>>
>>>
>>>>
>>>> Yes, I've installed everything PostgreSQL 12 has to offer:
>>>>
>>>> dnf list installed | grep "postgresql12"
>>>> postgresql12.x86_64                                12.2-2PGDG.f31
>>>> @pgdg12
>>>> postgresql12-contrib.x86_64                     12.2-2PGDG.f31
>>>> @pgdg12
>>>> postgresql12-devel.x86_64                       12.2-2PGDG.f31
>>>> @pgdg12
>>>
>>> Yeah, I missed part in your OP where said postgres.h was there. So:
>>>
>>> 1) Did you do both makes in the same directory?
>>>
>>> 2) If so did you do a make clean between builds?
>>>
>>>
>>>
>>> -- 
>>> Adrian Klaver
>> 
>>> adrian.klaver@
>> 
>> 1) Yes I did.
>> 2) Yes I did, though no .o .bc or .so files get created because of the
>> error
>> when using PostgreSQL 12 settings.
> 
> But they where created when you did the make against Postgres 10, correct?
> So where those cleaned up?
>> 
>> 
>> 
>> --
>> Sent from:
>> https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
>> 
>> 
> 
> 
> -- 
> Adrian Klaver

> adrian.klaver@


Yes, they were created when using make against Postgres 10 and I clean them
every time when I try a different version of Postgres.

TalGloz



--
Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux