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 1iei9K-0006cs-QB for pgsql-general@arkaria.postgresql.org; Tue, 10 Dec 2019 16:14:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iei9J-0004W6-HY for pgsql-general@arkaria.postgresql.org; Tue, 10 Dec 2019 16:14:09 +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 1iei9J-0004Rm-2Y for pgsql-general@lists.postgresql.org; Tue, 10 Dec 2019 16:14:09 +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 1iei9F-0001ws-Mg for pgsql-general@lists.postgresql.org; Tue, 10 Dec 2019 16:14:07 +0000 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mailbackend.panix.com (Postfix) with ESMTP id 47XQ9S3ZZrz1BKl; Tue, 10 Dec 2019 11:14:04 -0500 (EST) Received: by panix5.panix.com (Postfix, from userid 17622) id 47XQ9S2KXjzfYc; Tue, 10 Dec 2019 11:14:04 -0500 (EST) Date: Tue, 10 Dec 2019 11:14:04 -0500 From: stan To: Adrian Klaver Cc: pgsql-general@lists.postgresql.org Subject: Re: A question about upgrading on Debian/Ubuntu Message-ID: <20191210161404.GA17040@panix.com> References: <20191210112159.GA8023@panix.com> <071bafb3-5f4e-d4d4-6ba3-57242d45c05a@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <071bafb3-5f4e-d4d4-6ba3-57242d45c05a@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 10, 2019 at 07:46:02AM -0800, Adrian Klaver wrote: > On 12/10/19 3:21 AM, stan wrote: > > I upgraded successfully on our test machine from V11 to V12 the other d= ay. >=20 > The below indicates that this is not the case. >=20 > > Now it is time to upgrade the production machine. One f the lessons > > learned in doing this is to do "make install" on all the extensions used > > in the existing DB before doing the pg_dropcluster. >=20 > If you are installing from packages then a good deal of the extensions > should be in postgresql-contrib and you do not have to do make install. It is installed: dpkg -l=20 ii postgresql-contrib =20 >=20 > Do you have packages that come from outside contrib?: >=20 > https://www.postgresql.org/docs/12/contrib.html Yes, pgemailaddr is one. >=20 > >=20 > > On the production machine I am confused by the state of the V12 server: > >=20 > > If I do sudo apt-get install postgresql-12 I get a message about this > > package being marked to be "manually installed: pg_lsclusters reports o= n a > > version 11 instance: >=20 > Do have?: >=20 > /etc/postgresql/12/ Yes, I do. >=20 > >=20 > > stan@smokey:~/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 > >=20 > > And when I do a "make install" on one of the extensions, it installs in > > the V11 location. >=20 > Lets first see what you have for a 12 install before tackling that. >=20 Script started on 2019-12-10 16:09:59+0000 =1B]0;stan@ica-db: ~=07stan@ica-db:~$ =0D =1B]0;stan@ica-db: ~=07stan@ica-db:~$ dpkg-query -l postgresql*=0D Desired=3DUnknown/Install/Remove/Purge/Hold=0D | Status=3DNot/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig= -pend=0D |/ Err?=3D(none)/Reinst-required (StatusErr: uppercase=3Dbad)=0D ||/ Name Version Architect= ure Description=0D +++-=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D-=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D-=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D-=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0D ii postgresql 12+210.pgdg18.04+1 all = object-relational SQL database (supported version)=0D un postgresql-10 = (no description available)=0D un postgresql-10-pgagent = (no description available)=0D ii postgresql-11 11.6-1.pgdg18.04+1 amd64 = object-relational SQL database version 11 server=0D un postgresql-11-citus = (no description available)=0D un postgresql-11-cron = (no description available)=0D un postgresql-11-pgagent = (no description available)=0D un postgresql-11-pgextwlist = (no description available)=0D un postgresql-11-pglogical = (no description available)=0D un postgresql-11-plsh = (no description available)=0D un postgresql-11-rum = (no description available)=0D un postgresql-11-wal2json = (no description available)=0D ii postgresql-12 12.1-1.pgdg18.04+1 amd64 = object-relational SQL database version 12 server=0D un postgresql-12-pgagent = (no description available)=0D un postgresql-9.1 = (no description available)=0D un postgresql-9.4 = (no description available)=0D un postgresql-9.4-pgagent = (no description available)=0D un postgresql-9.5 = (no description available)=0D un postgresql-9.5-pgagent = (no description available)=0D un postgresql-9.6 = (no description available)=0D un postgresql-9.6-pgagent = (no description available)=0D un postgresql-client = (no description available)=0D ii postgresql-client-11 11.6-1.pgdg18.04+1 amd64 = front-end programs for PostgreSQL 11=0D ii postgresql-client-12 12.1-1.pgdg18.04+1 amd64 = front-end programs for PostgreSQL 12=0D ii postgresql-client-common 210.pgdg18.04+1 all = manager for multiple PostgreSQL client versions=0D ii postgresql-common 210.pgdg18.04+1 all = PostgreSQL database-cluster manager=0D ii postgresql-contrib 12+210.pgdg18.04+1 all = additional facilities for PostgreSQL (supported version)=0D un postgresql-contrib-11 = (no description available)=0D un postgresql-contrib-12 = (no description available)=0D un postgresql-doc = (no description available)=0D un postgresql-doc-11 = (no description available)=0D un postgresql-doc-12 = (no description available)=0D ii postgresql-server-dev-11 11.6-1.pgdg18.04+1 amd64 = development files for PostgreSQL 11 server-side programming= =0D un postgresql-server-dev-all = (no description available)=0D =1B]0;stan@ica-db: ~=07stan@ica-db:~$ exit=0D Script done on 2019-12-10 16:10:19+0000 --=20 "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin