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 1m9FQb-0001Yp-3U for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Jul 2021 23:27: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 1m9FQY-0005B8-NC for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Jul 2021 23:26:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9FQX-0005B0-VJ for pgsql-hackers@lists.postgresql.org; Thu, 29 Jul 2021 23:26:58 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9FQS-0005rH-MM for pgsql-hackers@lists.postgresql.org; Thu, 29 Jul 2021 23:26:56 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 9831A320092F; Thu, 29 Jul 2021 19:26:50 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 29 Jul 2021 19:26:50 -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=wAZF4J+xUEERSCnDEs5qPo7QfX0dQ9NfbLBxTsjqatc=; b=T9J0oSEw MkB1G05x32RsDMkDUzaeouSxZostEkKe86GfneE9kPxEKpQCJRnsfTMWsq7+tOck aO32Z+UpNltS26+1DyACcKkVgf1tmAkHyrCvW2VSQizJ1tbvSrWkywr54AvLe8LF psTFgfbIypY0wBjxmJlv9WvEe3zj0OWEG8loiLYQEawG/euKUmZpnkwyGoSmcB4a ui+sFNVeQvFBVAvKWdj8X83PGaxK5Ct6HsE+oUr7HQjTzmOFEFXqQWjPFf5P8fvF GGmZ5mvRBOwmw/wnf91wsvKOVZ2baHwXYh99jDaqpkOKB9xwFA844LOa5o/H30ck afl2iu4E8a+nqg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrheeggddtgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqne cuggftrfgrthhtvghrnhepudejveejffejveduudetvdekieeuiedtvdeileefkeevjedu feeguedvjefhueelnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgv rhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 29 Jul 2021 19:26:49 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 7B2852A09BD; Thu, 29 Jul 2021 19:26:46 -0400 (-04) Date: Thu, 29 Jul 2021 19:26:46 -0400 From: Alvaro Herrera To: Bruce Momjian Cc: Tom Lane , Dave Cramer , "David G. Johnston" , PostgreSQL Hackers Subject: Re: pg_upgrade does not upgrade pg_stat_statements properly Message-ID: <202107292326.s4weqxvr3wmb@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210729223858.GY9600@momjian.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Jul-29, Bruce Momjian wrote: > On Thu, Jul 29, 2021 at 06:29:11PM -0400, Tom Lane wrote: > > No, because dump/restore does not have this issue. Regular pg_dump just > > issues "CREATE EXTENSION" commands, so you automatically get the target > > server's default version. > > Oh, so pg_upgrade does it differently so the oids are preserved? Have a look at pg_dump --binary-upgrade output :-) -- Álvaro Herrera Valdivia, Chile — https://www.EnterpriseDB.com/ "Ellos andaban todos desnudos como su madre los parió, y también las mujeres, aunque no vi más que una, harto moza, y todos los que yo vi eran todos mancebos, que ninguno vi de edad de más de XXX años" (Cristóbal Colón)