Re: BackgroundPsql's set_query_timer_restart() may not work

Поиск
Список
Период
Сортировка
От Masahiko Sawada
Тема Re: BackgroundPsql's set_query_timer_restart() may not work
Дата
Msg-id CAD21AoBvu-KcjOFSCXG=AzKsZ3PymqK8iZnCVBgehBcgY1hgVA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BackgroundPsql's set_query_timer_restart() may not work  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Ответы Re: BackgroundPsql's set_query_timer_restart() may not work
Список pgsql-hackers
On Wed, Nov 29, 2023 at 4:30 PM Bharath Rupireddy
<bharath.rupireddyforpostgres@gmail.com> wrote:
>
> On Tue, Nov 28, 2023 at 12:23 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >
> > Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> writes:
> > > A nitpick on the patch - how about honoring the passed-in parameter
> > > with something like $self->{query_timer_restart} = 1 if !defined
> > > $self->{query_timer_restart}; instead of just setting it to 1 (a value
> > > other than undef) $self->{query_timer_restart} = 1;?
> >
> > I wondered about that too, but the evidence of existing callers is
> > that nobody cares.  If we did make the code do something like that,
> > (a) I don't think your fragment is right, and (b) we'd need to rewrite
> > the function's comment to explain it.  I'm not seeing a reason to
> > think it's worth spending effort on.

Agreed.

> Hm. I don't mind doing just the $self->{query_timer_restart} = 1; like
> in Sawada-san's patch.

Okay, I've attached the patch that I'm going to push through v16,
barring any objections.

Regards,

--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bharath Rupireddy
Дата:
Сообщение: Re: BackgroundPsql's set_query_timer_restart() may not work
Следующее
От: "Zhijie Hou (Fujitsu)"
Дата:
Сообщение: RE: Synchronizing slots from primary to standby