Re: Optionally automatically disable logical replication subscriptions on error
От | Amit Kapila |
---|---|
Тема | Re: Optionally automatically disable logical replication subscriptions on error |
Дата | |
Msg-id | CAA4eK1KfdZ4kY5J7-KM9OoWHdUW2MuTdUUgBV+S53S3h7CREkw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Optionally automatically disable logical replication subscriptions on error (Masahiko Sawada <sawada.mshk@gmail.com>) |
Ответы |
RE: Optionally automatically disable logical replication subscriptions on error
|
Список | pgsql-hackers |
On Wed, Mar 9, 2022 at 2:21 PM Masahiko Sawada <sawada.mshk@gmail.com> wrote: > > On Wed, Mar 9, 2022 at 4:33 PM osumi.takamichi@fujitsu.com > <osumi.takamichi@fujitsu.com> wrote: > > > > On Tuesday, March 8, 2022 10:23 PM Amit Kapila <amit.kapila16@gmail.com> wrote: > > > On Tue, Mar 8, 2022 at 1:37 PM osumi.takamichi@fujitsu.com > > > <osumi.takamichi@fujitsu.com> wrote: > > > > > > > > > > > 2. Is there a reason the patch doesn't allow workers to restart via > > > maybe_reread_subscription() when this new option is changed, if so, then let's > > > add a comment for the same? We currently seem to be restarting the worker on > > > any change via Alter Subscription. If we decide to change it for this option as > > > well then I think we need to accordingly update the current comment: "Exit if > > > any parameter that affects the remote connection was changed." to something > > > like "Exit if any parameter that affects the remote connection or a subscription > > > option was changed..." > > I thought it's ok without the change at the beginning, but I was wrong. > > To make this new option aligned with others, I should add one check > > for this feature. Fixed. > > Why do we need to restart the apply worker when disable_on_error is > changed? It doesn't affect the remote connection at all. I think it > can be changed without restarting like synchronous_commit option. > oh right, I thought that how will we update its value in MySubscription after a change but as we re-read the pg_subscription table for the current subscription and update MySubscription, I feel we don't need to restart it. I haven't tested it but it should work without a restart. -- With Regards, Amit Kapila.
В списке pgsql-hackers по дате отправления: