Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j0FXq-0004WG-Uf for pgsql-committers@arkaria.postgresql.org; Sat, 08 Feb 2020 02:08:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j0FXp-0007je-9Y for pgsql-committers@arkaria.postgresql.org; Sat, 08 Feb 2020 02:08:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j0FXp-0007jX-23 for pgsql-committers@lists.postgresql.org; Sat, 08 Feb 2020 02:08:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j0FXm-0005Hl-8A; Sat, 08 Feb 2020 02:08:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 01828M5C029909; Fri, 7 Feb 2020 21:08:22 -0500 From: Tom Lane To: Fujii Masao cc: Fujii Masao , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix bug in Tid scan. In-reply-to: References: <5261.1581103527@sss.pgh.pa.us> <24554.1581123870@sss.pgh.pa.us> Comments: In-reply-to Fujii Masao message dated "Sat, 08 Feb 2020 11:01:59 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29907.1581127702.1@sss.pgh.pa.us> Date: Fri, 07 Feb 2020 21:08:22 -0500 Message-ID: <29908.1581127702@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Fujii Masao writes: > On Sat, Feb 8, 2020 at 10:04 AM Tom Lane wrote: >> I think it's okay to add a new value of ScanOption; what you can't >> do is change the codes assigned to the existing values. So I'd >> just revert those code changes and give SO_TYPE_TIDSCAN a value >> that's out-of-order. > So you are thinking to apply something like the attached to > both master and v12? That sounds better to me. No, you can leave HEAD alone --- renumbering the enum values in master is fine, since we force extensions to recompile against new major versions. We just need to hold the values steady in released branches. Personally I'd keep SO_TYPE_TIDSCAN physically adjacent to the other SO_TYPE_xxxSCAN entries in the list, but of course that's just cosmetic. regards, tom lane