aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2021-06-11 12:16:14 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2021-06-11 12:16:14 -0400
commit96540f80f8334a3f0f4a13f0d42e4565d8fa9eb7 (patch)
treec963db829b6a0b57ac68c70988f22b4ad2743b91 /src/backend/executor/nodeModifyTable.c
parentd08237b5b494f96e72220bcef36a14a642969f16 (diff)
downloadpostgresql-96540f80f8334a3f0f4a13f0d42e4565d8fa9eb7.tar.gz
postgresql-96540f80f8334a3f0f4a13f0d42e4565d8fa9eb7.zip
Fix race condition in invalidating obsolete replication slots
The code added to mark replication slots invalid in commit c6550776394e had the race condition that a slot can be dropped or advanced concurrently with checkpointer trying to invalidate it. Rewrite the code to close those races. The changes to ReplicationSlotAcquire's API added with c6550776394e are not necessary anymore. To avoid an ABI break in released branches, this commit leaves that unchanged; it'll be changed in a master-only commit separately. Backpatch to 13, where this code first appeared. Reported-by: Andres Freund <andres@anarazel.de> Author: Andres Freund <andres@anarazel.de> Author: Álvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://postgr.es/m/20210408001037.wfmk6jud36auhfqm@alap3.anarazel.de
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions