Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tU2ck-00DWEg-Tm for pgsql-general@arkaria.postgresql.org; Sat, 04 Jan 2025 11:47:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tU2ck-009wP4-B9 for pgsql-general@arkaria.postgresql.org; Sat, 04 Jan 2025 11:47:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tU2ck-009wOw-0V for pgsql-general@lists.postgresql.org; Sat, 04 Jan 2025 11:47:21 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tU2ch-000BP2-32 for pgsql-general@lists.postgresql.org; Sat, 04 Jan 2025 11:47:21 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 5CA916318; Sat, 4 Jan 2025 12:47:17 +0100 (CET) Date: Sat, 4 Jan 2025 12:47:17 +0100 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: To uninstall or not to uninstall that is... Message-ID: <20250104114717.44xaqmpuz2nrmhky@hjp.at> Mail-Followup-To: pgsql-general@lists.postgresql.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jlgt2fanp4xs7lrz" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --jlgt2fanp4xs7lrz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2025-01-04 06:08:58 -0500, Arbol One wrote: > In my Debian 12 machine, I have PostgreSQL-15 installed; I'd like to upgr= ade to > PostgreSQL-16. Should I first uninstalled PostgreSQL-15 and then install > PostgreSQL-16 or is there a way to just do an upgrade? How did you install it? Package from the Debian repo, package from the PGDG repo or something else? The packages from the repos are designed to be installed in parallel and upgraded via pg_upgrade. There is a utility script "pg_upgradecluster" to aid in this. So the typical procedure is=20 1) Install new version 2) Drop the new (empty) database 3) Invoke pg_upgradecluster (see man-page for details) 4) Check that everything is ok 5) Drop old database and uninstall old version. hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --jlgt2fanp4xs7lrz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAmd5H78ACgkQ8g5IURL+ KF1ORQ/+MU9my5T/QURgTweRKiDGO5EEZ+sISR0uZQCdRqMvsVLVU0UbG17BQ+uC DSmxVFMuWaByOKG0kznepF8AIvofLO2buX8QHFWl0oyJjzbsP+Dih6lmLtHhLjjj I0vMmm75VCiNaT+N/pWpd0SOdFnJMY+veePzEtRjwo1kwWIpSrerq0BAbg7KJ869 RWwkrBhVQiSugs66fisH6j/jVULmtvGyJ+NdZt+2ejqoMiO/AEeG7M87r2LgbSA6 anoNbfvPpiBz2veVziXw8fUdwnbcZk5OXZ8BZATkobrme2f88pY2WBtouBjUVQFb J1CzW3oHpfT2CwIljvIVRxEhZNIELF44xIDHksKBPuenuuPXa5p9XqCzcYqllkll N7ucIlDQt14kDZNp80vb3nu+9qVVC4hZusPrtELtaFeEKybNsh25ZeHTv5fvB7rt s4M3/6zDeUtTKYSr5/6J69sawLk+soei0xyzdL/lTITa2zWCLbNw0cItyRY8pvnH EMsgrvtMkH6zMA0tfU5FhioecG0sVlOlMqxwgX5t8Z90hspwE2mcV1eGgqTYnsZF IO4onJGb1gy52yAkDF3uMMZKn64tsZBWU6Wiv2oqJw6+PTpMqKSFe4EKPVfRj9UI fC+FaD8mFU9csQ4OmxG/j9afU1SxuVlQCk7yrvKjvmQeHdMjhTQ= =Uzsm -----END PGP SIGNATURE----- --jlgt2fanp4xs7lrz--