aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-07-12 15:09:53 +0900
committerMichael Paquier <michael@paquier.xyz>2024-07-12 15:09:53 +0900
commit734c057a8935fca10ff67173c8b969ef799ea7d2 (patch)
tree5ed72e262aca246db405df33080692f61077e63c /src/backend/executor/nodeModifyTable.c
parent63909da9783a4736b01911fe3ee829651ff3c7d8 (diff)
downloadpostgresql-734c057a8935fca10ff67173c8b969ef799ea7d2.tar.gz
postgresql-734c057a8935fca10ff67173c8b969ef799ea7d2.zip
Add assertion in pgstat_write_statsfile() about processes allowed
This routine can currently only be called from the postmaster in single-user mode or the checkpointer, but there was no sanity check to make sure that this was always the case. This has proved to be useful when hacking the zone (at least to me), to make sure that the write of the pgstats file happens at shutdown, as wanted by design, in the correct process context. Discussion: https://postgr.es/m/ZnEiqAITL-VgZDoY@paquier.xyz
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions