postgresql/src
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
..
backend Collect built-in LWLock tranche names statically, not dynamically. 2020-05-14 11:10:31 -04:00
bin Fix pg_recvlogical avoidance of superfluous Standby Status Update. 2020-05-13 20:42:09 -07:00
common Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
fe_utils Add SQL type xid8 to expose FullTransactionId to users. 2020-04-07 12:03:59 +12:00
include Improve management of SLRU statistics collection. 2020-05-13 13:08:23 -04:00
interfaces Fix typo in comment on OpenSSL PEM password callback type name. 2020-05-14 13:57:00 +03:00
makefiles Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
pl Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
port Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
template Fix compiler warning for ppoll() on Cygwin 2019-12-22 23:20:00 +01:00
test In successful pg_recvlogical, end PGRES_COPY_OUT cleanly. 2020-05-13 20:42:09 -07:00
timezone Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
tools Fix findoidjoins to recognize oidvector columns. 2020-05-09 16:28:20 -04:00
tutorial Update copyrights for 2020 2020-01-01 12:21:45 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Update Unicode data to Unicode 13.0.0 and CLDR 37 2020-04-24 09:52:59 +02:00
Makefile.shlib Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nls-global.mk NLS: Fix backend gettext triggers 2019-09-23 09:04:20 +02:00