postgresql/src
Amit Kapila f6c5edb8ab Drop replication origin slots before tablesync worker exits.
Currently, the replication origin tracking of the tablesync worker is
dropped by the apply worker. So, there will be a small lag between the
tablesync worker exit and its origin tracking got removed. In the
meantime, new tablesync workers can be launched and will try to set up
a new origin tracking. This can lead the system to reach max configured
limit (max_replication_slots) even if the user has configured the max
limit considering the number of tablesync workers required in the system.

We decided not to back-patch as this can occur in very narrow
circumstances and users have to option to increase the configured limit by
increasing max_replication_slots.

Reported-by: Hubert Depesz Lubaczewski
Author: Ajin Cherian
Reviwed-by: Masahiko Sawada, Peter Smith, Hou Zhijie, Amit Kapila
Discussion: https://postgr.es/m/20220714115155.GA5439@depesz.com
2022-08-30 08:51:41 +05:30
..
backend Drop replication origin slots before tablesync worker exits. 2022-08-30 08:51:41 +05:30
bin Cleanup more code and comments related to Windows NT4 (XP days) 2022-08-30 09:52:58 +09:00
common Clean up inconsistent use of fflush(). 2022-08-29 13:55:41 -04:00
fe_utils Clean up inconsistent use of fflush(). 2022-08-29 13:55:41 -04:00
include Further code review of port/simd.h 2022-08-30 09:50:00 +07:00
interfaces Cleanup more code and comments related to Windows NT4 (XP days) 2022-08-30 09:52:58 +09:00
makefiles solaris: Remove unnecessary gcc / gnu ld vs sun studio differences 2022-08-07 09:36:01 -07:00
pl Be more careful to avoid including system headers after perl.h 2022-08-27 14:45:18 +07:00
port Cleanup more code and comments related to Windows NT4 (XP days) 2022-08-30 09:52:58 +09:00
template aix: Remove checks for very old OS versions 2022-08-07 09:36:01 -07:00
test Adjust comments that called MultiXactIds "XMIDs". 2022-08-29 19:42:30 -07:00
timezone Remove fallbacks for strtoll, strtoull. 2022-08-06 09:59:51 +12:00
tools Improve performance of and reduce overheads of memory management 2022-08-29 17:15:00 +12:00
tutorial Update copyright for 2022 2022-01-07 19:04:57 -05:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in Remove unused configure variable. 2022-08-18 11:22:13 -04:00
Makefile.shlib aix: Fix SHLIB_EXPORTS reference in VPATH builds 2022-08-24 20:39:46 -07:00
nls-global.mk Fix for make unportability 2022-07-13 09:15:01 +02:00