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 1r2wqR-001VpV-5p for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Nov 2023 17:04:59 +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 1r2wqP-009bcK-5f for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Nov 2023 17:04:57 +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 1r2wqO-009bcB-Rt for pgsql-hackers@lists.postgresql.org; Tue, 14 Nov 2023 17:04:56 +0000 Received: from mail-il1-x12e.google.com ([2607:f8b0:4864:20::12e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1r2wqL-005ZBZ-Tt for pgsql-hackers@postgresql.org; Tue, 14 Nov 2023 17:04:55 +0000 Received: by mail-il1-x12e.google.com with SMTP id e9e14a558f8ab-35950f04d98so23875715ab.2 for ; Tue, 14 Nov 2023 09:04:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699981493; x=1700586293; 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=DgKPnwwlJfCy3N5FDhgcwvMokNd7WWTzq3xGsGMhnxc=; b=SP7DAa6J24AjZeMFT2ExmDFTgXh3yXh0EzRAwqyJCid/1vooklEioZVKakg0S1Sd70 w8LpUlX0KRX1aRcyqhsRpijV0VrEyQBWRsv1Epwx3QvlLhA9ujrwo8fS6test4tOvA37 I46T0ryiky7lpJYguHL1hyvrX6gcOgYE0qadAwVi9WGfRIK4WI3qaiPRMbR9RxpbU9D6 +pFasMy93isTWYhpRIdpA42LaLtigs4l2lyCcBNDcboVTt3d8liHrvIOz2d8fHZzV22H oSlqeG/uz3Vy7euYVL1rzkoSFq3vHfWlNpMR3uWBgfejnkoUqQeew3Ql/X3nRDY7SEIK E2sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699981493; x=1700586293; 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=DgKPnwwlJfCy3N5FDhgcwvMokNd7WWTzq3xGsGMhnxc=; b=tTWLI9PBaxO4Xd4L6zi2etGxueSnsdI+mduvWkmvuV1+hI+uYqF+sKA5IOF4NP9HRj Ou//M+ZNc4Fo/JOXH1fNz2sjRwMT5BElrVH0t3P8tD7wfEcOH2I33USG1T7GmPRCwHpK en8mU89QoHc+ExxDg1qEC0zXtXxZYjH2/366zrCm6aLsId6nGT+KdH003F9sQz4pw5No XytJRH1lVOFpdD+juqzl7KCqPP1mVvrxm8E1GhcRHdWuH7RthwKS5tTl/y0b11vfaRjq mA7Bnr0zVho23Ik4unDXIz5+3ayXQPOAB5y1ht27AehwRFIRkzWEXQcIwQ67hecJNvbt JZYg== X-Gm-Message-State: AOJu0YxwemP34gL+DoxseiQLKdWrMQqxuEgVtTn4AVkA/kzwMpAQIK1h DSQvK9eHCE2DJjxvxbB+zbTRk6Uf7Xs= X-Google-Smtp-Source: AGHT+IF92SSb2gVEhMfpXpAfsj6hJShnZZ8ltdS2XId9/y8ykb1Gf9algalE4/iyRNizm9WDKHLnOg== X-Received: by 2002:a05:6e02:18cd:b0:359:3ba1:7745 with SMTP id s13-20020a056e0218cd00b003593ba17745mr16765182ilu.0.1699981493271; Tue, 14 Nov 2023 09:04:53 -0800 (PST) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id b17-20020a92c151000000b00357cc8df1d5sm553090ilh.68.2023.11.14.09.04.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 09:04:52 -0800 (PST) Date: Tue, 14 Nov 2023 11:04:51 -0600 From: Nathan Bossart To: Dagfinn Ilmari =?iso-8859-1?Q?Manns=E5ker?= Cc: Alvaro Herrera , pgsql-hackers@postgresql.org Subject: Re: retire MemoryContextResetAndDeleteChildren backwards compatibility macro Message-ID: <20231114170451.GA2115488@nathanxps13> References: <202311141620.5utqdkrxibkh@alvherre.pgsql> <871qcsnvfn.fsf@wibble.ilmari.org> <20231114170115.GB2062604@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231114170115.GB2062604@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Nov 14, 2023 at 11:01:15AM -0600, Nathan Bossart wrote: > On Tue, Nov 14, 2023 at 04:36:44PM +0000, Dagfinn Ilmari Mannsåker wrote: >> 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. > > 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 -- Nathan Bossart Amazon Web Services: https://aws.amazon.com