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 1ovRdj-00021H-8c for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Nov 2022 23:16:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ovRdh-0003Ii-Tl for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Nov 2022 23:16: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 1ovRdh-0003Hz-Ge for pgsql-hackers@lists.postgresql.org; Wed, 16 Nov 2022 23:16:17 +0000 Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ovRde-00087o-6t for pgsql-hackers@postgresql.org; Wed, 16 Nov 2022 23:16:16 +0000 Received: by mail-qt1-x834.google.com with SMTP id e15so138842qts.1 for ; Wed, 16 Nov 2022 15:16:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pcorp-us.20210112.gappssmtp.com; s=20210112; h=thread-index:content-language:content-transfer-encoding :mime-version:message-id:date:subject:in-reply-to:references:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=AB/0TmlL5MDOzkCTyO/IeLNtGq4uLV9+r2B7RD+W9JQ=; b=IbaXLnAjyHZzlnvHLo/sE/7+VSX9Yx2jNNaFDS6zqnx9hw82MpKEaSK73h3sgyH/z1 fp42PJO7NV9U6R8UctQcvZjSOvX/+5dT3J36UzU+BRHZ3SVHaet2SqDmYMJ3Y3l0QiWD wNIlC1YYTnH6g6ecjndgHQ5xok26Q0gdt5lSXExAzsJVU1s6FUWiCW95vfz1oXMe7WOX W6/gB3KI1WyyUwDa1d7CHEPQ4B1NzhYdNXPxeDQmjaV+prg2kLh41PjI2Fhjpkpfa9Q2 7otZK8JlOEP8iYwxJ94Eh6dFD69M4SGALvNfeP9G9lkqpa5lFn5/KoaZ10zYHvpvdo9I Lm4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=thread-index:content-language:content-transfer-encoding :mime-version:message-id:date:subject:in-reply-to:references:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AB/0TmlL5MDOzkCTyO/IeLNtGq4uLV9+r2B7RD+W9JQ=; b=mI95Gce0HkkR6BQ/OwPPXjLhZmq90kVNRq8tmpOP63uawvpHSYT9aXhmCGdV8d9nqS aqp5cPXGAYbme1f6Tu4L3bsdZTbJpXS5jseeRgUel36gmzZaPXzniSsppcZQ5+yKJf1b 12TyyUpdyyoL6a81icNxCQlyLojtcS8uZTHT4XSuVIsT2LU+9xqgWm+ZSawl9joTgHUL PilpCIr11XwBmBc+TOJNwpXzdl4QHI8qNm9OtpHIx9gTA3EDeLii9IP4M0O5sQBY/Aeq RevZ353GWJhTOgzVLOJPOcClvKgN93X6bNLx8HGxtyMtHlWlWTEUkpwtz+aaBwVqvPIG h5Kw== X-Gm-Message-State: ANoB5pm//77/An3EBsG1Bbu8wmwZtm7g4fH5cfpqfCf5oAGCWnRskGqr NRlqC4g8OPLQhJGhOiprxsT/kg== X-Google-Smtp-Source: AA0mqf7u4aWXvJOWibTus7Nln4sWlmw8OSiPXMyXVSUF1REIA/5wNkHVwmGJTuJ/Nu0PNLdE/WZGIA== X-Received: by 2002:ac8:480b:0:b0:3a5:73ba:6e3d with SMTP id g11-20020ac8480b000000b003a573ba6e3dmr87792qtq.567.1668640573328; Wed, 16 Nov 2022 15:16:13 -0800 (PST) Received: from F (50-78-240-110-static.hfc.comcastbusiness.net. [50.78.240.110]) by smtp.gmail.com with ESMTPSA id f9-20020a05620a280900b006b95b0a714esm10752134qkp.17.2022.11.16.15.16.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Nov 2022 15:16:12 -0800 (PST) From: "Regina Obe" To: Cc: "'Christoph Berg'" , , , "'Laurenz Albe'" , "'Tom Lane'" , "'Paul Ramsey'" References: <001d01d87211$edbd5b50$c93811f0$@pcorp.us> <000001d8f7e4$1c840d50$558c27f0$@pcorp.us> <20221116230933.6ynksku66i436ozm@c19> In-Reply-To: <20221116230933.6ynksku66i436ozm@c19> Subject: RE: [PATCH] Support % wildcard in extension upgrade filenames Date: Wed, 16 Nov 2022 18:16:11 -0500 Message-ID: <004601d8fa11$6b4bafe0$41e30fa0$@pcorp.us> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Content-Language: en-us Thread-Index: AQGYmaaUCwtlrmE55CHyCSUXu9VHkgJQLI/iAiPUhQ4CZFddqQJAUCuyAqHyhvUCSheaCQIh6LRQrkG5JWA= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > 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; I think you should increment the version number on the file name of this patch. You had one earlier called 0001-... The one before that was missing a version number entirely. Maybe call this 0003-... Thanks, Regina