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 1m99bc-00054n-ST for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Jul 2021 17:14:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m99bb-0003GR-Re for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Jul 2021 17:13:59 +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 1m99ba-0003GI-SA for pgsql-hackers@lists.postgresql.org; Thu, 29 Jul 2021 17:13:59 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m99bX-0005hE-Ld for pgsql-hackers@lists.postgresql.org; Thu, 29 Jul 2021 17:13:58 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id EDD385C0160; Thu, 29 Jul 2021 13:13:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 29 Jul 2021 13:13:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=j6extLrZMwKG4xCrp4Ksxufo1IeAmDTr6IKXHiEQLFg=; b=YjAyb8uz s/GjXRnz0SGDSuavKSO14ofrASk2LEAC/5A7T8PJThBeJUns6HV7usWpnJRD0Tf/ Y8zFjwrNbF1xBJKEe7gsaRWSkkeN843FzprWVPyaJZmSvuiTG15SgS74j0wOND38 aGr0jIKoIg4Xv7T2uX5D9/8WPWuvqz2Y4Ce2j9a2pdgBIWVJBrP3WoDnZ2gpHH47 AvswMOXqtaeFOXRhz2mV0mYk+X3M5ogDKkLCewsocSJbZ6GZTnOg4elQD5Mw6MD+ EEl6zz1dlAnyywr8TZY1Lfmtz8PKe4ARBYeQzDhtF9LxX+g69EGs1BHtezDAekek ZY0wSNjXw89eIQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrheefgdeivdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqne cuggftrfgrthhtvghrnhepueffvddtffeiteevteeuteffvdelfeevgfeffeetteejieej hfeigeekieeuteejnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhdphh grthgvshdqshhofhhtfigrrhgvrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdroh hrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 29 Jul 2021 13:13:51 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 6ADBE2A09BD; Thu, 29 Jul 2021 13:13:48 -0400 (-04) Date: Thu, 29 Jul 2021 13:13:48 -0400 From: Alvaro Herrera To: Dave Cramer Cc: "David G. Johnston" , Bruce Momjian , Tom Lane , PostgreSQL Hackers Subject: Re: pg_upgrade does not upgrade pg_stat_statements properly Message-ID: <202107291713.63pnbaycna4w@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Jul-29, Dave Cramer wrote: > > If the old cluster used extensions those same extensions must be > > installed in the new cluster via installation procedures specific > > to, and documented by, each extension. For contrib extensions it is > > usually enough to install the -contrib package via the same method > > you used to install the PostgreSQL server. > > Well this is not strictly true. There are many extensions that would > work just fine with the current pg_upgrade. It may not even be > necessary to recompile them. It is always necessary to recompile because of the PG_MODULE_MAGIC declaration, which is mandatory and contains a check that the major version matches. Copying the original shared object never works. -- Álvaro Herrera 39°49'30"S 73°17'W — https://www.EnterpriseDB.com/ "But static content is just dynamic content that isn't moving!" http://smylers.hates-software.com/2007/08/15/fe244d0c.html