pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@postgresql.org
Subject: Re: Pre-version pg_upgrade syntax check
Date: Tue, 11 Feb 2020 09:44:59 -0800
Message-ID: <c8601ebb-4195-1bee-722c-be19f1ae008d@aklaver.com> (raw)
In-Reply-To: <alpine.LNX.2.20.2002110857170.12893@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.2002101352320.32087@salmo.appl-ecosys.com>
	<03ebdc12-d8f6-8310-9552-f7a744fe3e73@aklaver.com>
	<alpine.LNX.2.20.2002101529200.4839@salmo.appl-ecosys.com>
	<alpine.LNX.2.20.2002101535311.4839@salmo.appl-ecosys.com>
	<3698bbe2-6082-acda-58a0-2f8c15fee1b2@aklaver.com>
	<alpine.LNX.2.20.2002101603250.4839@salmo.appl-ecosys.com>
	<0b05d4ae-03f9-cdc7-f063-f38d08edca90@aklaver.com>
	<alpine.LNX.2.20.2002110538440.12893@salmo.appl-ecosys.com>
	<d212dbb1-23a0-24e5-f9ec-7b26a1bb3a80@aklaver.com>
	<alpine.LNX.2.20.2002110857170.12893@salmo.appl-ecosys.com>

On 2/11/20 9:00 AM, Rich Shepard wrote:
> On Tue, 11 Feb 2020, Adrian Klaver wrote:
> 
>> The above runs the psql client not the server. It is a way of determining
>> what version binaries /usr/lib64/postgresql/11/bin/ actually contains.
> 
> Adrian,
> 
> Aha! Running the command taught me a couple of valuable lessons because 
> both
> 11 and 12 show they're running 12.1. That's because the SlackBuilds.org
> build script apparently upgraded 11.5 to 12.1 in the same
> /usr/lib64/postgresql/11/ directory. Before the next major version upgrade


 From here:

https://slackbuilds.org/repository/14.2/system/postgresql/

the latest build is for Postgres 10.10 and it does:

PG_VERSION=${PG_VERSION:-10.10}

./configure \
   --prefix=/usr/lib${LIBDIRSUFFIX}/$PRGNAM/$PG_VERSION \
   --sysconfdir=/etc/$PRGNAM/$PG_VERSION \
   --includedir=/usr/include \
   --datarootdir=/usr/share \
   --mandir=/usr/man \
   --docdir=/usr/doc/$PRGNAM-$VERSION \
   --datadir=/usr/share/$PRGNAM-$PG_VERSION \
   ...

Is there maybe a custom script in the mix somewhere?
Or something else setting PG_VERSION?



> I'll ensure the new version is installed in the proper subdirectory.
> 
> Since 12.1 is running I'll remove the version 11 directories.
> 
> Thanks very much,
> 
> Rich
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (13+ messages)

Message-ID: <c8601ebb-4195-1bee-722c-be19f1ae008d@aklaver.com>
Permalink:  ../c8601ebb-4195-1bee-722c-be19f1ae008d@aklaver.com/
Also on:    postgresql.org/message-id/c8601ebb-4195-1bee-722c-be19f1ae008d@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, rshepard@appl-ecosys.com
  Subject: Re: Pre-version pg_upgrade syntax check
  In-Reply-To: <c8601ebb-4195-1bee-722c-be19f1ae008d@aklaver.com>
  References: <alpine.LNX.2.20.2002101352320.32087@salmo.appl-ecosys.com> <03ebdc12-d8f6-8310-9552-f7a744fe3e73@aklaver.com> <alpine.LNX.2.20.2002101529200.4839@salmo.appl-ecosys.com> <alpine.LNX.2.20.2002101535311.4839@salmo.appl-ecosys.com> <3698bbe2-6082-acda-58a0-2f8c15fee1b2@aklaver.com> <alpine.LNX.2.20.2002101603250.4839@salmo.appl-ecosys.com> <0b05d4ae-03f9-cdc7-f063-f38d08edca90@aklaver.com> <alpine.LNX.2.20.2002110538440.12893@salmo.appl-ecosys.com> <d212dbb1-23a0-24e5-f9ec-7b26a1bb3a80@aklaver.com> <alpine.LNX.2.20.2002110857170.12893@salmo.appl-ecosys.com> <c8601ebb-4195-1bee-722c-be19f1ae008d@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