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 1r2wPK-001U5k-2d for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Nov 2023 16:36:58 +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 1r2wPH-009OKl-RI for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Nov 2023 16:36:55 +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 1r2wPH-009OJ9-0m for pgsql-hackers@lists.postgresql.org; Tue, 14 Nov 2023 16:36:55 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r2wPD-005Yq4-Io for pgsql-hackers@postgresql.org; Tue, 14 Nov 2023 16:36:53 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 4349A3201E27; Tue, 14 Nov 2023 11:36:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 14 Nov 2023 11:36:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1699979808; x=1700066208; bh=OV zU+oUV0HVvD0uurXy+M3h6kmOzjxSC7U3YC0PLz3s=; b=83y3cgxdYr63syZcjH If8/XHK9xP0sgpyDYDuS3o2lcBpRz6SW8nVK0IRr1ZOFAOUPAwl16EPpGGh9UEpU ExVF3sMxuJ9j3vKrJR8h2nzcikrwIuUeInUDDEgSxnjD4wyO7SxsnQ5HTl6WYPm0 Lo8TS579E+n1WLI9wmLsdGg+3/Ib7VW6zy27pHkRDtRYqhKYUe/rXVFSfEwmaWEY KlumqTWH4c5KabkZOLrveqD1HfVsnKkPoqMv/03hEUjM9L8JSX1GEqAzmvJDe4uE 8N+qJnENK4TXrc05jakThVeWg3jPivsvlmAe6j9UmIkU4TME7PASbOHeLoACRqJC nTiA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references: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=1699979808; x=1700066208; bh=OVzU+oUV0HVvD 0uurXy+M3h6kmOzjxSC7U3YC0PLz3s=; b=MYi4gZNLU9/8r+pKoS2BCKBAnzxth KWtZ7h2tpx5fFtLYJm05PzpVxjdupToStNdXoVlCkhzBNTLJojmRPUij2Kl7Vr2a bqPAFPGzLZ0E56N0zyViiNSqjFnXoTSJC2J0Mo3pXsgnEx+CrdCJxPYeNV9t53sq JXij+Z43XLrEZBC3juh0E/ZexC02YFLj9dx6CbUDzyOTXMfpPyQ+Zehi0MjrtOX0 8hmsc7JxEl5blPHSbK1o9BAAsJM1MPywNwUuzbZlj/deXD/v+1CE0K/04RzjHs6B OPiWUX1cz/uRtmJuNMpG6y92rtrltWPy1fqcQLl4h3h7qzWwPJXmlqAcQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudefvddgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufhffjgfkfgggtgesthdtredttderjeenucfhrhhomhepffgrghhf ihhnnhcukfhlmhgrrhhiucforghnnhhsnohkvghruceoihhlmhgrrhhisehilhhmrghrih drohhrgheqnecuggftrfgrthhtvghrnhepveehjeegheffhfelgfeuffevkeehtdfhtdeh vddtiedvtdfghfdtffekfefhiefhnecuffhomhgrihhnpeguvggsihgrnhdrnhgvthenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehilhhmrghr ihesihhlmhgrrhhirdhorhhg X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 14 Nov 2023 11:36:47 -0500 (EST) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Alvaro Herrera Cc: Nathan Bossart , pgsql-hackers@postgresql.org Subject: Re: retire MemoryContextResetAndDeleteChildren backwards compatibility macro References: <202311141620.5utqdkrxibkh@alvherre.pgsql> Date: Tue, 14 Nov 2023 16:36:44 +0000 In-Reply-To: <202311141620.5utqdkrxibkh@alvherre.pgsql> (Alvaro Herrera's message of "Tue, 14 Nov 2023 17:20:16 +0100") Message-ID: <871qcsnvfn.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > On 2023-Nov-13, Nathan Bossart wrote: > >> Shall we retire this backwards compatibility macro at this point? A search >> of https://codesearch.debian.net/ does reveal a few external uses, so we >> could alternatively leave it around and just update Postgres to stop using >> it, but I don't think it would be too burdensome for extension authors to >> fix if we removed it completely. > > Let's leave the macro around and just remove its uses in PGDG-owned > code. Having the macro around hurts nothing, and we can remove it in 15 > years or so. Is there a preprocessor symbol that is defined when building Postgres itself (and extensions in /contrib/), but not third-party extensions (or vice versa)? If so, the macro could be guarded by that, so that uses don't accientally sneak back in. There's also __attribute__((deprecated)) (and and __declspec(deprecated) for MSVC), but that can AFAIK only be attached to functions and variables, not macros, so it would have to be changed to a static inline function. - ilmari