Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r2ww9-001WEF-OS for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Nov 2023 17:10:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r2ww8-009ePe-BT for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Nov 2023 17:10:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r2ww8-009ePW-1q for pgsql-hackers@lists.postgresql.org; Tue, 14 Nov 2023 17:10:52 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r2ww1-005ZDC-4s for pgsql-hackers@postgresql.org; Tue, 14 Nov 2023 17:10:50 +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 3AEHAfBm2498234; Tue, 14 Nov 2023 12:10:41 -0500 From: Tom Lane To: Nathan Bossart cc: Dagfinn Ilmari =?iso-8859-1?Q?Manns=E5ker?= , Alvaro Herrera , pgsql-hackers@postgresql.org Subject: Re: retire MemoryContextResetAndDeleteChildren backwards compatibility macro In-reply-to: <20231114170451.GA2115488@nathanxps13> References: <202311141620.5utqdkrxibkh@alvherre.pgsql> <871qcsnvfn.fsf@wibble.ilmari.org> <20231114170115.GB2062604@nathanxps13> <20231114170451.GA2115488@nathanxps13> Comments: In-reply-to Nathan Bossart message dated "Tue, 14 Nov 2023 11:04:51 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2498232.1699981841.1@sss.pgh.pa.us> Date: Tue, 14 Nov 2023 12:10:41 -0500 Message-ID: <2498233.1699981841@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: >> It might be worth introducing pg_attribute_deprecated() in c.h. I'm not >> too worried about this particular macro, but it seems handy in general. > Huh, this was brought up before [0]. > [0] https://postgr.es/m/20200825183002.fkvzxtneijsdgrfv%40alap3.anarazel.de FWIW, I think it's fine to just nuke MemoryContextResetAndDeleteChildren. We ask extension authors to deal with much more significant API changes than that in every release, and versions where the updated code wouldn't work are long gone. And, as you say, the existence of that separate from MemoryContextReset creates confusion, which has nonzero cost in itself. regards, tom lane