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 1r2xh7-001Zct-Bl for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Nov 2023 17:59:25 +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 1r2xh5-00A47X-GB for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Nov 2023 17:59:23 +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 1r2xh5-00A47O-6A for pgsql-hackers@lists.postgresql.org; Tue, 14 Nov 2023 17:59:23 +0000 Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1r2xh2-005ZXD-Cc for pgsql-hackers@postgresql.org; Tue, 14 Nov 2023 17:59:21 +0000 Received: by mail-il1-x132.google.com with SMTP id e9e14a558f8ab-359d27f6d46so20165135ab.3 for ; Tue, 14 Nov 2023 09:59:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699984759; x=1700589559; darn=postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=mwnaPr7lrj+/1MmAs+gscEqw6LyXooQmLAHJZqHF2JI=; b=AofJbAue3Vw7lYisVwxylPYZ6jPs9AlaLQIyGa5YcsNUEho9/JHJ/hT1g3Xa/m2L3G a6+HuOPuV3RSTLoRJqh9qMNRJkfNjYgrSUqeVkBb7arc9oNaPPscKNMIxPHNxsiXg4Om bJAmEEzVp5UdML3iwdTX+zd1GyxoyGeT7/pUG4k/mKZURil5DbkAzkZWVRLfYTzOyX6c 6ij4wMnL/rY3+nxQ9Le8QRsF4eEd85vqaDGduJjg05ntUd5+z/JucACbw2pIlnXUI0nu vpJVEAC8OwH932RFLzX61CAJO64ktiGm3nh1IYkhwM+dfDNovLjxYobYNU4R8edWPV3o Ayyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699984759; x=1700589559; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mwnaPr7lrj+/1MmAs+gscEqw6LyXooQmLAHJZqHF2JI=; b=OpUmmdI9qXnoz6t+j7MiKkGn0QY/uHxKtW9qzkOnlmtPTKQdD/TzVnHvlIQnltuvqV r0ncD8RZ9VDmLj3FVCqZJY1w0+ZMnXXKtw1HgPlTwA4+cvW226Hy/u1Bel5WvyGvE4A/ 6UvlY7EWlnVoQzGNNMxn/b+FXvWn3ULNq7BW1tvt1s7FSAgvA4RZwq8IwfYlUkgYLHrR WUSHpQAXceM7bq7R/Jx3tyvxWVfuMpwzCErl2PINUIG/qtBdIvIxzcPY1NHUQ1TTax3G QefY4KFBQCMI2SauzwQptZIgYrwNc7KA98roP4q/Oz7LXe5FC9NcS3djIxpIfQV0zFjr QEWA== X-Gm-Message-State: AOJu0YxH7NN01EJc/HdyMDiHue7mrBv+TeNVhsw3xnlr+Muc23qC6OH/ dIVFg4wJLQwEYuY8lwBaCfY= X-Google-Smtp-Source: AGHT+IFnFAFVtslpwi64A7fHfMttsvQy1N38NCB6fgQC+xINY1h0LzpgAY7g5A96qMhOe1yYiQkPGg== X-Received: by 2002:a05:6e02:1a87:b0:35a:d052:da48 with SMTP id k7-20020a056e021a8700b0035ad052da48mr1689803ilv.29.1699984759281; Tue, 14 Nov 2023 09:59:19 -0800 (PST) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id u14-20020a056e02080e00b00359a2d8d0d2sm588136ilm.67.2023.11.14.09.59.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 09:59:18 -0800 (PST) Date: Tue, 14 Nov 2023 11:59:17 -0600 From: Nathan Bossart To: Tom Lane Cc: Dagfinn Ilmari =?iso-8859-1?Q?Manns=E5ker?= , Alvaro Herrera , pgsql-hackers@postgresql.org Subject: Re: retire MemoryContextResetAndDeleteChildren backwards compatibility macro Message-ID: <20231114175917.GC2062604@nathanxps13> References: <202311141620.5utqdkrxibkh@alvherre.pgsql> <871qcsnvfn.fsf@wibble.ilmari.org> <20231114170115.GB2062604@nathanxps13> <20231114170451.GA2115488@nathanxps13> <2498233.1699981841@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2498233.1699981841@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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, I don't mind going the __attribute__((deprecated)) route, but otherwise, I'd probably just remove it completely. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com