postgresql/src/backend/access
Tom Lane 29c3e2dd5a Collect built-in LWLock tranche names statically, not dynamically.
There is little point in using the LWLockRegisterTranche mechanism for
built-in tranche names.  It wastes cycles, it creates opportunities for
bugs (since failing to register a tranche name is a very hard-to-detect
problem), and the lack of any centralized list of names encourages
sloppy nonconformity in name choices.  Moreover, since we have a
centralized list of the tranches anyway in enum BuiltinTrancheIds, we're
certainly not buying any flexibility in return for these disadvantages.

Hence, nuke all the backend-internal LWLockRegisterTranche calls,
and instead provide a const array of the builtin tranche names.

(I have in mind to change a bunch of these names shortly, but this
patch is just about getting them into one place.)

Discussion: https://postgr.es/m/9056.1589419765@sss.pgh.pa.us
2020-05-14 11:10:31 -04:00
..
brin Implement operator class parameters 2020-03-30 19:17:23 +03:00
common Implement operator class parameters 2020-03-30 19:17:23 +03:00
gin Modify additional power 2 calculations to use new helper functions 2020-04-08 18:29:51 +12:00
gist Skip WAL for new relfilenodes, under wal_level=minimal. 2020-04-04 12:25:34 -07:00
hash Modify various power 2 calculations to use new helper functions 2020-04-08 16:55:03 +12:00
heap Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
index Remove rudiments of supporting procnum == 0 from 911e702077 2020-03-30 23:43:25 +03:00
nbtree Adjust "root of to-be-deleted subtree" function. 2020-05-11 11:01:07 -07:00
rmgrdesc Harmonize nbtree page split point code. 2020-04-13 16:39:55 -07:00
spgist Fix missing SP-GiST support in 911e702077 2020-03-30 23:45:03 +03:00
table Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
tablesample Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
transam Collect built-in LWLock tranche names statically, not dynamically. 2020-05-14 11:10:31 -04:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00