aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/regexp.c
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2022-08-30 08:51:41 +0530
committerAmit Kapila <akapila@postgresql.org>2022-08-30 08:51:41 +0530
commitf6c5edb8abcac04eb3eac6da356e59d399b2bcef (patch)
tree059817b92102142963428da9f31de02a15d4e349 /src/backend/utils/adt/regexp.c
parent865424627db638acdbe4b5d0384d0b9cd34838a5 (diff)
downloadpostgresql-f6c5edb8abcac04eb3eac6da356e59d399b2bcef.tar.gz
postgresql-f6c5edb8abcac04eb3eac6da356e59d399b2bcef.zip
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
Diffstat (limited to 'src/backend/utils/adt/regexp.c')
0 files changed, 0 insertions, 0 deletions