Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 64f7a55

Browse files
Amit Kapilapull[bot]
authored andcommittedMar 8, 2024
Restart the apply worker if the 'password_required' option is changed.
The apply worker is restarted if any subscription option that affects the remote connection was changed. In commit c3afe8c, we added the option 'password_required' which can affect the remote connection, so we should restart the worker if it was changed. Author: Amit Kapila Reviewed-by: Robert Haas Discussion: https://postgr.es/m/CAA4eK1+z9UDFEynXLsWeMMuUZc1iQkRwj2HNDtxUHTPo-u1F4A@mail.gmail.com Discussion: https://postgr.es/m/9DFC88D3-1300-4DE8-ACBC-4CEF84399A53@enterprisedb.com
1 parent c9c72b9 commit 64f7a55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/backend/replication/logical/worker.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3934,6 +3934,7 @@ maybe_reread_subscription(void)
39343934
strcmp(newsub->slotname, MySubscription->slotname) != 0 ||
39353935
newsub->binary != MySubscription->binary ||
39363936
newsub->stream != MySubscription->stream ||
3937+
newsub->passwordrequired != MySubscription->passwordrequired ||
39373938
strcmp(newsub->origin, MySubscription->origin) != 0 ||
39383939
newsub->owner != MySubscription->owner ||
39393940
!equal(newsub->publications, MySubscription->publications))

0 commit comments

Comments
 (0)
Failed to load comments.