diff options
author | Amit Kapila | 2023-04-20 03:26:18 +0000 |
---|---|---|
committer | Amit Kapila | 2023-04-20 03:26:18 +0000 |
commit | c1cc4e688b60090f194017c6e15e330a725fba3e (patch) | |
tree | eaa9309676b654558de7f6cdc8864be774511c71 | |
parent | 7d3d72b55edd1b7552a9a358991555994efab0e9 (diff) |
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 c3afe8cf5a, 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/[email protected]
-rw-r--r-- | src/backend/replication/logical/worker.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/replication/logical/worker.c b/src/backend/replication/logical/worker.c index 3d58910c14..37bb884127 100644 --- a/src/backend/replication/logical/worker.c +++ b/src/backend/replication/logical/worker.c @@ -3934,6 +3934,7 @@ maybe_reread_subscription(void) strcmp(newsub->slotname, MySubscription->slotname) != 0 || newsub->binary != MySubscription->binary || newsub->stream != MySubscription->stream || + newsub->passwordrequired != MySubscription->passwordrequired || strcmp(newsub->origin, MySubscription->origin) != 0 || newsub->owner != MySubscription->owner || !equal(newsub->publications, MySubscription->publications)) |