Skip to content

Commit c1cc4e6

Browse files
author
Amit Kapila
committed
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 7d3d72b commit c1cc4e6

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy