Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8vE3-00012D-Bi for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Jul 2021 01:52:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m8vE1-0000nU-HQ for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Jul 2021 01:52:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8vE1-0000nM-Ag for pgsql-hackers@lists.postgresql.org; Thu, 29 Jul 2021 01:52:41 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8vDy-0006Kn-Md for pgsql-hackers@lists.postgresql.org; Thu, 29 Jul 2021 01:52:40 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1m8vDw-0002j7-Le; Wed, 28 Jul 2021 21:52:36 -0400 Date: Wed, 28 Jul 2021 21:52:36 -0400 From: Bruce Momjian To: "David G. Johnston" Cc: Dave Cramer , Tom Lane , PostgreSQL Hackers Subject: Re: pg_upgrade does not upgrade pg_stat_statements properly Message-ID: <20210729015236.GD9600@momjian.us> References: <3562835.1626291827@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="qcHopEYAB45HaUaB" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --qcHopEYAB45HaUaB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Thu, Jul 15, 2021 at 08:15:57AM -0700, David G. Johnston wrote: > On Thursday, July 15, 2021, David G. Johnston >  My uncertainty revolves around core extensions since it seems odd to tell > the user to overwrite them with versions from an older version of > PostgreSQL. > > Ok. Just re-read the docs a third time…no uncertainty regarding contrib > now…following the first part of the instructions means that before one could > re-run create extension they would need to restore the original contrib library > files to avoid the new extension code using the old library.  So that whole > part about recreation is inconsistent with the existing unchanged text. I came up with the attached patch. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion. --qcHopEYAB45HaUaB Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="pg_upgrade.diff" diff --git a/doc/src/sgml/ref/pgupgrade.sgml b/doc/src/sgml/ref/pgupgrade.sgml index a83c63cd98..c042300c8c 100644 --- a/doc/src/sgml/ref/pgupgrade.sgml +++ b/doc/src/sgml/ref/pgupgrade.sgml @@ -306,8 +306,9 @@ make prefix=/usr/local/pgsql.new install into the new cluster, e.g., pgcrypto.so, whether they are from contrib or some other source. Do not install the schema definitions, e.g., - CREATE EXTENSION pgcrypto, because these will be upgraded - from the old cluster. + CREATE EXTENSION pgcrypto, because these will be copied + from the old cluster. (Consider upgrading the extensions later + using ALTER EXTENSION...UPGRADE.) Also, any custom full text search files (dictionary, synonym, thesaurus, stop words) must also be copied to the new cluster. --qcHopEYAB45HaUaB--