aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.h
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2025-07-23 12:06:20 -0500
committerNathan Bossart <nathan@postgresql.org>2025-07-23 12:06:20 -0500
commit2047ad068139f0b8c6da73d0b845ca9ba30fb33d (patch)
treeba56f07828234de199b9f7826b2254cb41826f87 /contrib/postgres_fdw/postgres_fdw.h
parent37c7a7eeb6d13aac8edd7af032562233b0769e34 (diff)
downloadpostgresql-2047ad068139f0b8c6da73d0b845ca9ba30fb33d.tar.gz
postgresql-2047ad068139f0b8c6da73d0b845ca9ba30fb33d.zip
Cross-check lists of built-in LWLock tranches.
lwlock.c, lwlock.h, and wait_event_names.txt each contain a list of built-in LWLock tranches. It is easy to miss one or the other when adding or removing tranches, and discrepancies have adverse effects (e.g., breaking JOINs between pg_stat_activity and pg_wait_events). This commit moves the lists of built-in tranches in lwlock.{c,h} to lwlocklist.h and adds a cross-check to the script that generates lwlocknames.h. If the lists do not match exactly, building will fail. Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/aHpOgwuFQfcFMZ/B%40ip-10-97-1-34.eu-west-3.compute.internal
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
0 files changed, 0 insertions, 0 deletions