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 1q4POh-00007l-Pi for pgsql-hackers@arkaria.postgresql.org; Wed, 31 May 2023 17:14:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q4POg-0002bG-9n for pgsql-hackers@arkaria.postgresql.org; Wed, 31 May 2023 17:14:06 +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 1q4POg-0002b6-0l for pgsql-hackers@lists.postgresql.org; Wed, 31 May 2023 17:14:06 +0000 Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q4POY-002vdE-Pf for pgsql-hackers@lists.postgresql.org; Wed, 31 May 2023 17:14:04 +0000 X-GND-Sasl: strk@kbt.io X-GND-Sasl: strk@kbt.io X-GND-Sasl: strk@kbt.io X-GND-Sasl: strk@kbt.io X-GND-Sasl: strk@kbt.io X-GND-Sasl: strk@kbt.io X-GND-Sasl: strk@kbt.io X-GND-Sasl: strk@kbt.io X-GND-Sasl: strk@kbt.io Received: by mail.gandi.net (Postfix) with ESMTPSA id AC95D1C0003; Wed, 31 May 2023 17:13:52 +0000 (UTC) Date: Wed, 31 May 2023 19:13:50 +0200 From: Sandro Santilli Sender: strk@kbt.io To: =?utf-8?Q?Przemys=C5=82aw?= Sztoch Cc: Yurii Rashkovskii , Eric Ridge , Tom Lane , Robert Haas , Regina Obe , Regina Obe , pgsql-hackers@lists.postgresql.org Subject: Re: [PATCH] Support % wildcard in extension upgrade filenames Message-ID: <20230531171350.txpt7udupfwwg44s@c19> References: <29e81ac7-9fad-573a-6319-9a8265320c2d@sztoch.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <29e81ac7-9fad-573a-6319-9a8265320c2d@sztoch.pl> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, May 18, 2023 at 11:14:52PM +0200, Przemysław Sztoch wrote: > For me, it would be a big help if you could specify a simple from/to range > as the source version: > myext--1.0.0-1.9.9--2.0.0.sql > myext--2.0.0-2.9.9--3.0.0.sql > myext--3.0.0-3.2.3--3.2.4.sql > > The idea of % wildcard in my opinion is fully contained in the from/to > range. Yes, it will be once partial matching is implemented (in its current state the patch only allows the wildcard to cover the whole version, not just a portion, but the idea was to move to partial matches too). > The name "ANY" should also be allowed as the source version. It is. The only character with a special meaning, in my patch, would be the "%" character, and would ONLY be special if the extension has set the wildcard_upgrades directive to "true" in the .control file. > Some extensions are a collection of CREATE OR REPLACE FUNCTION. All upgrades > are one and the same SQL file. Yes, this is the case for PostGIS, and that's why we're looking forward to addint support for this wildcard. --strk;