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 1r2yxT-001gRX-Ki for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Nov 2023 19:20:23 +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 1r2yxQ-00ASOq-1v for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Nov 2023 19:20:20 +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 1r2yxO-00ASOM-5L for pgsql-hackers@lists.postgresql.org; Tue, 14 Nov 2023 19:20:19 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r2yxK-005a1d-ME for pgsql-hackers@postgresql.org; Tue, 14 Nov 2023 19:20:16 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 94D2D32009C3; Tue, 14 Nov 2023 14:20:11 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 14 Nov 2023 14:20:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1699989611; x= 1700076011; bh=EjbLozaIoJHCgKGWlRK3SAeRekyG5CgzvL/7ElSJGmI=; b=2 Osel/GhjCTLP+dcCdr+Vgl4H2CLsneQ7pqJLqtkWLQab0JWv8ldkSdr5Eq26uZKw FacZpRq73RkVmYvDUsf9Fh7+oynqp9jMugGApGsH9Vy1ojbnWTB2jVvU7VRqA8dg UG/Rh1pANxg0HpODlDGeIEYDQWa+qMUxucPDFVqgh7FWkEiJDq8fYKrA5gFAlf7P vhZQbgeio6g0AwMS+R74EophponlBTNesQtnkF96X+nz+YNGQcu7vSuik/kfX9uW sDxmgbTBq5Qs0NUYYKA55BoG8FHdswTwMx9ka3c74e/LZRQ3CqulTqApo7Cvafch 8PgEE26ot4jjmWkVI/k7A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeffedgfedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 14 Nov 2023 14:20:10 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1699989608; bh=b7tflPascucYWvCSkbQksU2wY4JTjjZ075gT8sTuUvA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=aiXchIEX/aj3NTy6HON5xl9HRKlRUptqJ8E+FGhrtrcjEG2ycK7vXguCAFidD5+LH fjyrWDt6Odb4mAxNXmS3SAiNVsL/ftO6ezETzCLHCCSNNXgl3vI5GewVzh28oon4tn UnmU322qLAn6TKegv9oMpf0dSSeiA2SOSgkB9fynk6KgNtLMYTIk/WNc4N9xFvZUt0 DnLv9/qQTbZpfY7nQDWKSKsgiSB7VN/adV2NOSH3CuqkxnYAkdcREH+gxtZygn9sQ0 4B7h8iuIY1SzRbtSGDFR5APpSSL3Q8lOonJq7cp52DrJQyx0gVoG0Y8LtGQ1dOtBGV vaW/0Av9SDrFw== Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 0F6B2DE; Tue, 14 Nov 2023 20:20:08 +0100 (CET) Date: Tue, 14 Nov 2023 20:20:08 +0100 From: Alvaro Herrera To: Nathan Bossart Cc: Tom Lane , Dagfinn Ilmari =?utf-8?Q?Manns=C3=A5ker?= , pgsql-hackers@postgresql.org Subject: Re: retire MemoryContextResetAndDeleteChildren backwards compatibility macro Message-ID: <202311141920.edtj56saukiv@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231114175917.GC2062604@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Nov-14, Nathan Bossart wrote: > On Tue, Nov 14, 2023 at 12:10:41PM -0500, Tom Lane wrote: > > 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. > > That is my preference as well. Alvaro, AFAICT you are the only vote > against removing it completely. If you feel ѕtrongly about it, Oh, I don't. (But I wouldn't mind putting pg_attribute_deprecated to good use elsewhere ... not that I have any specific examples handy.) Your S key seems to be doing some funny business. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Hay dos momentos en la vida de un hombre en los que no debería especular: cuando puede permitírselo y cuando no puede" (Mark Twain)