postgresql/src/backend/tcop
Nathan Bossart 6a72c42fd5 Retire MemoryContextResetAndDeleteChildren() macro.
As of commit eaa5808e8e, MemoryContextResetAndDeleteChildren() is
just a backwards compatibility macro for MemoryContextReset().  Now
that some time has passed, this macro seems more likely to create
confusion.

This commit removes the macro and replaces all remaining uses with
calls to MemoryContextReset().  Any third-party code that use this
macro will need to be adjusted to call MemoryContextReset()
instead.  Since the two have behaved the same way since v9.5, such
adjustments won't produce any behavior changes for all
currently-supported versions of PostgreSQL.

Reviewed-by: Amul Sul, Tom Lane, Alvaro Herrera, Dagfinn Ilmari Mannsåker
Discussion: https://postgr.es/m/20231113185950.GA1668018%40nathanxps13
2023-11-15 13:42:30 -06:00
..
Makefile Represent command completion tags as structs 2020-03-02 18:19:51 -03:00
cmdtag.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
dest.c Fix misuse of PqMsg_Close. 2023-08-29 18:32:38 -07:00
fastpath.c Introduce macros for protocol characters. 2023-08-22 19:16:12 -07:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
postgres.c Retire MemoryContextResetAndDeleteChildren() macro. 2023-11-15 13:42:30 -06:00
pquery.c Simplify useless 0L constants 2023-03-29 08:25:12 +02:00
utility.c Fix pgindent 2023-07-10 12:05:32 +02:00