pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-hackers@postgresql.org
Subject: Re: retire MemoryContextResetAndDeleteChildren backwards compatibility macro
Date: Tue, 14 Nov 2023 11:04:51 -0600
Message-ID: <20231114170451.GA2115488@nathanxps13> (raw)
In-Reply-To: <20231114170115.GB2062604@nathanxps13>
References: <202311141620.5utqdkrxibkh@alvherre.pgsql>
	<871qcsnvfn.fsf@wibble.ilmari.org>
	<20231114170115.GB2062604@nathanxps13>

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





view thread (21+ messages)  latest in thread

Message-ID: <20231114170451.GA2115488@nathanxps13>
Permalink:  ../20231114170451.GA2115488@nathanxps13/
Also on:    postgresql.org/message-id/20231114170451.GA2115488@nathanxps13

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: nathandbossart@gmail.com, ilmari@ilmari.org, alvherre@alvh.no-ip.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>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox