postgresql/src
Michael Paquier 77cf6a78de Add some asserts based on LWLockHeldByMe() for replication slot statistics
Two assertions checking that ReplicationSlotAllocationLock is acquired
are added to pgstat_create_replslot() and pgstat_drop_replslot(),
corresponding to the routines in charge of the creation and the drop of
replication slot statistics.  The code previously relied on this
assumption and documented it in comments, but did not enforce this
policy at runtime.

Reviewed-by: Bertrand Drouvot
Discussion: https://postgr.es/m/Ze_p-hmD_yFeVYXg@paquier.xyz
2024-03-13 07:45:11 +09:00
..
backend Add some asserts based on LWLockHeldByMe() for replication slot statistics 2024-03-13 07:45:11 +09:00
bin Fix version check in 002_pg_upgrade.pl. 2024-03-12 15:24:03 -07:00
common Use printf's %m format instead of strerror(errno) in more places 2024-03-12 10:02:54 +09:00
fe_utils Centralize logic for restoring errno in signal handlers. 2024-02-14 16:34:18 -06:00
include Fix confusion about the return rowtype of SQL-language procedures. 2024-03-12 18:16:25 -04:00
interfaces libpq: Add encrypted and non-blocking query cancellation routines 2024-03-12 17:32:25 +01:00
makefiles Remove AIX support 2024-02-28 15:17:23 +04:00
pl Redefine backend ID to be an index into the proc array 2024-03-03 19:37:28 +02:00
port Use printf's %m format instead of strerror(errno) in more places 2024-03-12 10:02:54 +09:00
template Remove AIX support 2024-02-28 15:17:23 +04:00
test Fix confusion about the return rowtype of SQL-language procedures. 2024-03-12 18:16:25 -04:00
timezone Update time zone data files to tzdata release 2024a. 2024-02-01 15:57:53 -05:00
tools libpq: Add encrypted and non-blocking query cancellation routines 2024-03-12 17:32:25 +01:00
tutorial Update copyright for 2024 2024-01-03 20:49:05 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Remove make function vpathsearch 2024-01-29 07:24:59 +01:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00