Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1icErA-0004vu-Ms for pgsql-general@arkaria.postgresql.org; Tue, 03 Dec 2019 20:33:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1icEr9-0006cM-Aa for pgsql-general@arkaria.postgresql.org; Tue, 03 Dec 2019 20:33:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1icEr8-0006c0-Ti for pgsql-general@lists.postgresql.org; Tue, 03 Dec 2019 20:33:11 +0000 Received: from mailbackend.panix.com ([166.84.1.89]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1icEr5-0000aR-S0 for pgsql-general@lists.postgresql.org; Tue, 03 Dec 2019 20:33:09 +0000 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mailbackend.panix.com (Postfix) with ESMTP id 47SDFZ1g8KzkXL; Tue, 3 Dec 2019 15:33:06 -0500 (EST) Received: by panix5.panix.com (Postfix, from userid 17622) id 47SDFZ0Y1SzfYc; Tue, 3 Dec 2019 15:33:06 -0500 (EST) Date: Tue, 3 Dec 2019 15:33:05 -0500 From: stan To: Adrian Klaver Cc: pgsql-general@lists.postgresql.org Subject: Re: Issue upgrading from V11 to V12 on Debian Message-ID: <20191203203305.GA24842@panix.com> References: <20191203155347.GA15007@panix.com> <4513.1575389635@sss.pgh.pa.us> <20191203164622.GA3615@panix.com> <337db11b-4490-7747-e978-118d555f8838@illuminatedcomputing.com> <20191203175121.GA11395@panix.com> <02be2a35-7b15-0564-11a0-8ad964c70a69@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <02be2a35-7b15-0564-11a0-8ad964c70a69@aklaver.com> X-Editor: gVim User-Agent: Mutt/1.12.1 (2019-06-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Dec 03, 2019 at 11:35:40AM -0800, Adrian Klaver wrote: > On 12/3/19 9:51 AM, stan wrote: > >=20 > > On Tue, Dec 03, 2019 at 08:58:58AM -0800, Paul Jungwirth wrote: > > > On 12/3/19 8:46 AM, stan wrote:> So, I have V12 running as the defaul= t on > > > the machine I am testing this on > > > > now: > > > >=20 > > > > Ver Cluster Port Status Owner Data directory Log fi= le > > > > 11 main 5433 down postgres /var/lib/postgresql/11/main > > > > /var/log/postgresql/postgresql-11-main.log > > > > 12 main 5432 online postgres /var/lib/postgresql/12/main > > > > /var/log/postgresql/postgresql-12-main.log > > > >=20 > > > > BUT, I went to the directory where I have the exentsion's source, d= id a > > > > make clean ; make ; make install, and the files were still installe= d in the > > > > V11 tree. How can I instruct the system to put these in the V12 tre= e? > > > >=20 > > > > The extension in question is pgemailaddr if this matters, BTW. > > >=20 > > > That extension (and every extension I've seen) uses Postgres's normal > > > extension-building infrastructure, so it runs pg_config to learn wher= e to > > > put files. If you run pg_config on your system it will probably report > > > directories belonging to v11. (That's a little surprising because on = Ubuntu > > > systems I've always had it report the latest version.) > > >=20 > > > Many other Ubuntu Postgres commands accept a PGCLUSTER envvar to spec= ific > > > which cluster to use. If you want to add that to your pg_config you c= ould do > > > it like this: https://stackoverflow.com/a/43403193/122087 Then just s= et > > > PGCLUSTER before building. (Make sure you `make clean` first.) > > >=20 > > And weirder. > >=20 > > So I purged the V1 server again, edited the postgresql.conf file to put= it > > back to port 5432, reinstalled the V12 package, and now: > >=20 > > stan@stantest:~/src/pgemailaddr-master$ pg_lsclusters > > Ver Cluster Port Status Owner Data directory Log file > > 11 main 5432 online postgres /var/lib/postgresql/11/main > > /var/log/postgresql/postgresql-11-main.log > > 12 main 5434 online postgres /var/lib/postgresql/12/main > > /var/log/postgresql/postgresql-12-main.log > >=20 > > So, I decided to take a quick look at the production machine, just to m= ake > > sure this matched up to what was going on over there, and look what I f= ound: > >=20 > > stan@ica-db:~$ htop > > stan@ica-db:~$ pg_lsclusters > > Ver Cluster Port Status Owner Data directory Log file > > 11 main 5432 online postgres /var/lib/postgresql/11/main > > /var/log/postgresql/postgresql-11-main.log > > 12 main 5432 online postgres /var/lib/postgresql/11/main > > /var/log/postgresql/postgresql-12-main.log > >=20 > > This seems impossible to me. > >=20 >=20 > What does ps ax | grep post show? >=20 On the production machine, just teh V11 biaries. Looks like the pg_lsclusters methond may not be totaly relaible. B=7FGot the test machine upgraded. Thanks to all the helpful folks that provided expert advice on this. --=20 "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin