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 1kdbSr-0001vO-Uc for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Nov 2020 15:58:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kdbSq-0000Wh-8W for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Nov 2020 15:58:16 +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 1kdbSq-0000WV-1N for pgsql-hackers@lists.postgresql.org; Fri, 13 Nov 2020 15:58:16 +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 1kdbSj-0002sH-QH for pgsql-hackers@postgresql.org; Fri, 13 Nov 2020 15:58: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 0ADFvtl7287836; Fri, 13 Nov 2020 10:57:55 -0500 From: Tom Lane To: Peter Eisentraut cc: Justin Pryzby , Heikki Linnakangas , Stephen Frost , Ian Lawrence Barwick , pgsql-hackers@postgresql.org Subject: Re: [PATCH] remove deprecated v8.2 containment operators In-reply-to: <87f709e5-6d3e-0e65-8f83-0a19a2343388@enterprisedb.com> References: <20201027032511.GF9241@telsasoft.com> <155ecfd8-7ac6-1875-5090-d79a586a8847@enterprisedb.com> <235561.1605220100@sss.pgh.pa.us> <87f709e5-6d3e-0e65-8f83-0a19a2343388@enterprisedb.com> Comments: In-reply-to Peter Eisentraut message dated "Fri, 13 Nov 2020 08:26:28 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <287834.1605283075.1@sss.pgh.pa.us> Date: Fri, 13 Nov 2020 10:57:55 -0500 Message-ID: <287835.1605283075@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > On 2020-11-12 23:28, Tom Lane wrote: >> I'm on board with pulling these now --- 8.2 to v14 is plenty of >> deprecation notice. However, the patch seems incomplete in that >> the code support for these is still there -- look for >> RTOldContainedByStrategyNumber and RTOldContainsStrategyNumber. >> Admittedly, there's not much to be removed except some case labels, >> but it still seems like we oughta do that to avoid future confusion. > Yeah, the stuff in gistproc.c should be removed now. But I wonder what > the mentions in brin_inclusion.c are and whether or how they should be > removed. I think those probably got cargo-culted in there at some point. They're visibly dead code, because there are no pg_amop entries for BRIN opclasses with amopstrategy 13 or 14. This comment that you removed in 2f70fdb06 is suspicious: # we could, but choose not to, supply entries for strategies 13 and 14 I'm guessing that somebody was vacillating about whether it'd be a feature to support these old operator names in BRIN, and eventually didn't, but forgot to remove the code support. regards, tom lane