pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: TalGloz <glozmantal@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Compiling C Extension Functions against PostgreSQL 12
Date: Sat, 2 May 2020 12:55:15 -0700
Message-ID: <1b0a4606-2964-48ef-0736-ff51db2d2e1d@aklaver.com> (raw)
In-Reply-To: <1588448354769-0.post@n3.nabble.com>
References: <1588447687198-0.post@n3.nabble.com>
	<4edd59f3-4d95-c41c-6839-7d022946f8d4@aklaver.com>
	<1588448354769-0.post@n3.nabble.com>

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@aklaver.com





view thread (20+ messages)  latest in thread

Message-ID: <1b0a4606-2964-48ef-0736-ff51db2d2e1d@aklaver.com>
Permalink:  ../1b0a4606-2964-48ef-0736-ff51db2d2e1d@aklaver.com/
Also on:    postgresql.org/message-id/1b0a4606-2964-48ef-0736-ff51db2d2e1d@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, glozmantal@gmail.com
  Subject: Re: Compiling C Extension Functions against PostgreSQL 12
  In-Reply-To: <1b0a4606-2964-48ef-0736-ff51db2d2e1d@aklaver.com>
  References: <1588447687198-0.post@n3.nabble.com> <4edd59f3-4d95-c41c-6839-7d022946f8d4@aklaver.com> <1588448354769-0.post@n3.nabble.com> <1b0a4606-2964-48ef-0736-ff51db2d2e1d@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox