Re: Issue upgrading from V11 to V12 on Debian

From: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
To: "stan" <stanb(at)panix(dot)com>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>,pgsql-general(at)postgresql(dot)org
Subject: Re: Issue upgrading from V11 to V12 on Debian
Date: 2019-12-03 17:59:28
Message-ID: 44d85776-655b-41f9-a668-f19e9678701f@manitou-mail.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

stan wrote:

> BUT, I went to the directory where I have the exentsion's source, did a
> make clean ; make ; make install, and the files were still installed in the
> V11 tree. How can I instruct the system to put these in the V12 tree?

With the Debian packaging, /usr/bin/pg_config is a shell script that
has this comment on top:

# If postgresql-server-dev-* is installed, call pg_config from the latest
# available one. Otherwise fall back to libpq-dev's version.

According to this comment, invoking /usr/bin/pg_config refers to the v11
server probably because you didn't install postgresql-server-dev-12 yet.

When you'll have both postgresql-server-dev-11 and postgresql-server-dev-12
installed, independently of which clusters are actually running,
you can still force a specific target version when compiling an extension
with :
$ make PG_CONFIG=/usr/lib/postgresql/11/bin/pg_config [install]
or
$ make PG_CONFIG=/usr/lib/postgresql/12/bin/pg_config [install]

Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2019-12-03 19:34:03 Re: Syntax error for UPDATE ... RETURNING INTO STRICT
Previous Message stan 2019-12-03 17:51:21 Re: Issue upgrading from V11 to V12 on Debian