Prohibit altering invalidated replication slots.
authorAmit Kapila <akapila@postgresql.org>
Fri, 13 Sep 2024 03:59:13 +0000 (09:29 +0530)
committerAmit Kapila <akapila@postgresql.org>
Fri, 13 Sep 2024 04:01:23 +0000 (09:31 +0530)
commit4d8489f4f1fa86a99e6db0ea702911e1cf92fa81
tree0f222ebc3eaf4f618509270a18a3bbbb1ae36078
parent7b1ddbae361b0ed92d5696d666ae85a2cc4dd883
Prohibit altering invalidated replication slots.

ALTER_REPLICATION_SLOT for invalid replication slots should not be allowed
because there is no way to get back the invalidated (logical) slot to
work.

Author: Bharath Rupireddy
Reviewed-by: Peter Smith, Shveta Malik
Discussion: https://www.postgresql.org/message-id/CALj2ACW4fSOMiKjQ3=2NVBMTZRTG8Ujg6jsK9z3EvOtvA4vzKQ@mail.gmail.com
src/backend/replication/slot.c
src/test/recovery/t/035_standby_logical_decoding.pl