Re: retire MemoryContextResetAndDeleteChildren backwards compatibility macro
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>, Alvaro Herrera <alvherre@alvh.no-ip.org>, pgsql-hackers@postgresql.org
Date: 2023-11-14T17:10:41Z
Lists: pgsql-hackers
Nathan Bossart <nathandbossart@gmail.com> writes: >> 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 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. regards, tom lane
Commits
-
Retire MemoryContextResetAndDeleteChildren() macro.
- 6a72c42fd5af 17.0 landed
-
Simplify code by getting rid of SPI_push, SPI_pop, SPI_restore_connection.
- 1833f1a1c3b0 10.0 cited
-
Redefine MemoryContextReset() as deleting, not resetting, child contexts.
- eaa5808e8ec4 9.5.0 cited
-
tuplestore_donestoring() isn't needed anymore, but provide a no-op
- dd04e958c8b0 7.4.1 cited