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 1m9Vwk-0004pN-BM for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Jul 2021 17:05:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m9Vwj-0001GL-CI for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Jul 2021 17:05:17 +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 1m9Vwj-0001G6-4T for pgsql-hackers@lists.postgresql.org; Fri, 30 Jul 2021 17:05:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9Vwg-00066L-OR for pgsql-hackers@lists.postgresql.org; Fri, 30 Jul 2021 17:05:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 16UH5CuZ1009430; Fri, 30 Jul 2021 13:05:13 -0400 From: Tom Lane To: Jan Wieck cc: Dave Cramer , Julien Rouhaud , Bruce Momjian , PostgreSQL Hackers Subject: Re: pg_upgrade does not upgrade pg_stat_statements properly In-reply-to: <3b757bb5-b481-3615-6d44-aaf0ab2813c8@wi3ck.info> References: <20210729161432.GN9600@momjian.us> <20210730020257.jpvunvworyqsaz43@nol> <20210730103945.nc2zl74v5czy2qwd@nol> <20210730110728.tqt3oeohyvtuqqk7@nol> <20210730112832.wt3zdv32gllohope@nol> <3b757bb5-b481-3615-6d44-aaf0ab2813c8@wi3ck.info> Comments: In-reply-to Jan Wieck message dated "Fri, 30 Jul 2021 12:43:04 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1009428.1627664712.1@sss.pgh.pa.us> Date: Fri, 30 Jul 2021 13:05:12 -0400 Message-ID: <1009429.1627664712@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jan Wieck writes: > An alternative to this would be a recommended version number scheme for > extensions. If extensions were numbered > MAJOR_SERVER.MAJOR_EXTENSION.MINOR_EXTENSION > then pg_upgrade could check the new cluster for the existence of an SQL > script that upgrades the extension from the old cluster's version to the > new current. And since an extension cannot have the same version number > on two major server versions, there is no ambiguity here. That idea cannot get off the ground. We've spent ten years telling people they can use whatever version-numbering scheme they like for their extensions; we can't suddenly go from that to "you must use exactly this scheme". I don't see the need for it anyway. What is different from just putting the update actions into an extension version upgrade script created according to the current rules, and then setting that new extension version as the default version in the extension build you ship for the new server version? regards, tom lane