postgresql/src/backend
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
..
access Collect built-in LWLock tranche names statically, not dynamically. 2020-05-14 11:10:31 -04:00
bootstrap Skip WAL for new relfilenodes, under wal_level=minimal. 2020-04-04 12:25:34 -07:00
catalog Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
commands Fix async.c to not register any SLRU stats counts in the postmaster. 2020-05-13 22:48:26 -04:00
executor Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
foreign Update copyrights for 2020 2020-01-01 12:21:45 -05:00
jit Extend ExecBuildAggTrans() to support a NULL pointer check. 2020-03-04 17:29:18 -08:00
lib Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
libpq Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
main Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nodes Get rid of trailing semicolons in C macro definitions. 2020-05-01 17:28:00 -04:00
optimizer Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
parser Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
partitioning Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
po Translation updates 2020-05-11 13:14:32 +02:00
port Update copyrights for 2020 2020-01-01 12:21:45 -05:00
postmaster Fix async.c to not register any SLRU stats counts in the postmaster. 2020-05-13 22:48:26 -04:00
regex Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
replication Collect built-in LWLock tranche names statically, not dynamically. 2020-05-14 11:10:31 -04:00
rewrite Fix INSERT OVERRIDING USER VALUE behavior 2020-03-31 08:50:39 +02:00
snowball Update copyrights for 2020 2020-01-01 12:21:45 -05:00
statistics Modify additional power 2 calculations to use new helper functions 2020-04-08 18:29:51 +12:00
storage Collect built-in LWLock tranche names statically, not dynamically. 2020-05-14 11:10:31 -04:00
tcop Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
tsearch Further cleanup of ts_headline code. 2020-04-09 15:38:43 -04:00
utils Fix the MSVC build for versions 2015 and later. 2020-05-14 09:24:33 +05:30
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Add missing gettext triggers 2020-04-28 13:35:40 +02:00