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 1iSkQC-0006GX-4M for pgsql-general@arkaria.postgresql.org; Thu, 07 Nov 2019 16:14:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iSkQA-0005ze-LC for pgsql-general@arkaria.postgresql.org; Thu, 07 Nov 2019 16:14:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSkQA-0005zX-BF for pgsql-general@lists.postgresql.org; Thu, 07 Nov 2019 16:14:06 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSkQ7-0001jD-8o for pgsql-general@lists.postgresql.org; Thu, 07 Nov 2019 16:14:05 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 26D571320; Thu, 7 Nov 2019 17:14:01 +0100 (CET) Date: Thu, 7 Nov 2019 17:14:01 +0100 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: 11 -> 12 upgrade on Debian Ubuntu Message-ID: <20191107161401.GA24371@hjp.at> References: <20191107154558.GA7759@panix.com> <70b351b8-fc6b-1895-9708-95a290c77864@aklaver.com> <20191107155937.GB7759@panix.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline In-Reply-To: <20191107155937.GB7759@panix.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-11-07 10:59:37 -0500, stan wrote: > On Thu, Nov 07, 2019 at 07:52:14AM -0800, Adrian Klaver wrote: > > On 11/7/19 7:45 AM, stan wrote: > > > I am in the middle of a project, and it looks like version 12 is now = what > > > the Debian/Ubuntu package managers want to update to. > >=20 > > This should be a dist-upgrade correct? >=20 > Correct. >=20 > > On a my Ubuntu instance that just installed the Postgres 12 version and > > started it(also auto start in start.conf). This was just the template > > databases and postgres db. No data was moved over from the 11 instance = that > > is running. > >=20 > Thanks, that is helpful to know. To migrate the data to the new database, run pg_upgradecluster. This is a wrapper around pg_upgrade which knows about details of a standard Debian/Ubuntu PostgreSQL installation (like directory layout, etc.), so it should be simpler and safer than invoking pg_upgrade yourself (and pg_upgrade is hidden in /usr/lib/postgresql/*/bin to prevent you from invoking it accidentally). hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl3EQsMACgkQ8g5IURL+ KF1dwg//VclNNUqYyofU0wLkfKds6BTuZhsRhcvIBiFFW7tkoZIZa2SC5dD2bala yFR6w88REbqzWdbPn9vdWODTpjYYgSSYEPs5RgnBdEBitofWtQ9G6XYiNhPoeMWG UY9fCtBOuEEYRx+/HpDT75joF3H4wC7C5cd6z9SbGEmPsBcVOotS4AidGFUskO+C 3b05Vuyh9qje7dysC9f3dGeE+n1ne/8gmdNBBlC0OgV/zcWa4W2ZEwbndubByme8 FGli95sGlVTJcfuWTxszmRWKNK89rCN7RrLNrTevkY+N2kFTHP+YK9IoYtpb112l ZPXkVJOAmFFqtsJ8cHvLWUzfQUx9rcmoHFxTu7RNLVJZSUKjPziLMI+biHZHIlxP ssT91fkB8EI2UW6V1j9zineY90gQ61Bx4OCVz23XB13eCzrxqeaE4aqDWyVpUaKT le1uCikcQj+BbAjJFWIBP/0zNQHp/x/yJiwgZ6kesJA40QVBxgP/1H0Dhx4Mtu4U ZixVG9a+yd9MZN0D20JL2i7UpNpQYDpzSDn+r5ZNtWvSXQtRH03c+yrBgAVc2jYm A1jJnMp+U3BXVBbXGYwcdsx+TslewsXpBkis2SCyItLX/GUQFEaLmiowB5xJaBUh 0Vxv4xULKwZMRGbfLIDdC9fDg6r1PKnyHYg02GT1062MrDXfl/0= =X1cu -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--