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 1ovRXP-0001if-1i for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Nov 2022 23:09:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ovRXM-0005Gc-E3 for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Nov 2022 23:09:44 +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 1ovRXM-0005GT-3B for pgsql-hackers@lists.postgresql.org; Wed, 16 Nov 2022 23:09:44 +0000 Received: from relay2-d.mail.gandi.net ([2001:4b98:dc4:8::222]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ovRXJ-00022z-Ep for pgsql-hackers@lists.postgresql.org; Wed, 16 Nov 2022 23:09:43 +0000 Received: (Authenticated sender: strk@kbt.io) by mail.gandi.net (Postfix) with ESMTPSA id BB7F640004; Wed, 16 Nov 2022 23:09:34 +0000 (UTC) Date: Thu, 17 Nov 2022 00:09:33 +0100 From: 'Sandro Santilli' Sender: strk@kbt.io To: Regina Obe Cc: 'Christoph Berg' , pgsql-hackers@lists.postgresql.org, pgsql-hackers@postgresql.org, 'Laurenz Albe' , 'Tom Lane' , 'Paul Ramsey' Subject: Re: [PATCH] Support % wildcard in extension upgrade filenames Message-ID: <20221116230933.6ynksku66i436ozm@c19> Mail-Followup-To: 'Sandro Santilli' , Regina Obe , 'Christoph Berg' , pgsql-hackers@lists.postgresql.org, pgsql-hackers@postgresql.org, 'Laurenz Albe' , 'Tom Lane' , 'Paul Ramsey' References: <001d01d87211$edbd5b50$c93811f0$@pcorp.us> <000001d8f7e4$1c840d50$558c27f0$@pcorp.us> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="pikujl27r76rlaub" Content-Disposition: inline In-Reply-To: <000001d8f7e4$1c840d50$558c27f0$@pcorp.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --pikujl27r76rlaub Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Nov 13, 2022 at 11:46:50PM -0500, Regina Obe wrote: > > Re: Sandro Santilli > > > I'm attaching an updated version of the patch. This time the patch is > > > tested. Nothing changes unless the .control file for the subject > > > extension doesn't have a "wildcard_upgrades = true" statement. > > > > > > When wildcard upgrades are enabled, a file with a "%" symbol as the > > > "source" part of the upgrade path will match any version and > > > > Fwiw I believe wildcard_upgrades isn't necessary in the .control file. > > If there are no % files, none would be used anyway, and if there are, it's > clear > > it's meant as wildcard since % won't appear in any remotely sane version > > number. > > I also like the idea of skipping the wildcard_upgrades syntax. > Then there is no need to have a conditional control file for PG 16 vs. older > versions. Here we go. Attached a version of the patch with no "wildcard_upgrades" controlling it. --strk; --pikujl27r76rlaub Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Allow-wildcard-in-extension-upgrade-paths.patch"