postgresql/src/backend/utils
Tom Lane 5ec8b01c30 MemoryContextCreate: assert parent is valid and different from node.
The case of "node == parent" might seem impossible, since we just
allocated the new node.  But it's possible if parent is a dangling
reference to a recently-deleted context.  In fact, given aset.c's
habit of recycling contexts, it's actually rather likely if that's so.
If we'd had this assertion before, it would have simplified debugging
a recently-identified walsender issue.

Reported-by: Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com>
Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CAO6_XqoJA7-_G6t7Uqe5nWF3nj+QBGn4F6Ptp=rUGDr0zo+KvA@mail.gmail.com
2025-04-21 11:34:36 -04:00
..
activity Fix recently introduced typos 2025-04-11 22:17:12 +02:00
adt Fix a few more duplicate words in comments 2025-04-21 13:50:50 +12:00
cache Fix typos and grammar in the code 2025-04-19 19:17:42 +09:00
error Add local-address escape "%L" to log_line_prefix. 2025-04-07 11:06:05 -04:00
fmgr Introduce PG_MODULE_MAGIC_EXT macro. 2025-03-26 11:06:12 -04:00
hash Revert "Improve accounting for memory used by shared hash tables" 2025-04-04 04:43:50 +02:00
init Fix a few oversights in the longer cancel keys patch 2025-04-09 13:11:42 +03:00
mb Assert lack of hazardous buffer locks before possible catalog read. 2025-04-17 05:00:30 -07:00
misc Introduce file_copy_method setting. 2025-04-08 21:35:38 +12:00
mmgr MemoryContextCreate: assert parent is valid and different from node. 2025-04-21 11:34:36 -04:00
resowner aio: Basic subsystem initialization 2025-03-17 18:51:33 -04:00
sort Relax ordering-related hardcoded btree requirements in planning 2025-04-06 14:43:51 +02:00
time Improve snapmgr.c comment 2025-03-11 23:28:38 +02:00
.gitignore Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
errcodes.txt Update copyright for 2025 2025-01-01 11:21:55 -05:00
Gen_dummy_probes.pl Update copyright for 2025 2025-01-01 11:21:55 -05:00
Gen_fmgrtab.pl Update copyright for 2025 2025-01-01 11:21:55 -05:00
generate-errcodes.pl Update copyright for 2025 2025-01-01 11:21:55 -05:00
Makefile Update copyright for 2025 2025-01-01 11:21:55 -05:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
postprocess_dtrace.sed Update copyright for 2025 2025-01-01 11:21:55 -05:00
probes.d Update copyright for 2025 2025-01-01 11:21:55 -05:00