Re: A new function to wait for the backend exit after termination
От
Bharath Rupireddy
Тема
Re: A new function to wait for the backend exit after termination
Дата
Msg-id
CALj2ACVNxfKzwZUZWRKUmVuVuGCOa=CdYz5vNpyk9Q+-jC=j_g@mail.gmail.com
Ответ на
Список
Дерево обсуждения
A new function to wait for the backend exit after termination Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: A new function to wait for the backend exit after termination Magnus Hagander <magnus@hagander.net>
Re: A new function to wait for the backend exit after termination Andres Freund <andres@anarazel.de>
Re: A new function to wait for the backend exit after termination "David G. Johnston" <david.g.johnston@gmail.com>
Re: A new function to wait for the backend exit after termination Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: A new function to wait for the backend exit after termination "David G. Johnston" <david.g.johnston@gmail.com>
Re: A new function to wait for the backend exit after termination Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: A new function to wait for the backend exit after termination Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: A new function to wait for the backend exit after termination Fujii Masao <masao.fujii@oss.nttdata.com>
Re: A new function to wait for the backend exit after termination Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: A new function to wait for the backend exit after termination Muhammad Usama <m.usama@gmail.com>
Re: A new function to wait for the backend exit after termination Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: A new function to wait for the backend exit after termination Muhammad Usama <m.usama@gmail.com>
RE: A new function to wait for the backend exit after termination "Hou, Zhijie" <houzj.fnst@cn.fujitsu.com>
Re: A new function to wait for the backend exit after termination Tom Lane <tgl@sss.pgh.pa.us>
RE: A new function to wait for the backend exit after termination "Hou, Zhijie" <houzj.fnst@cn.fujitsu.com>
RE: A new function to wait for the backend exit after termination "Hou, Zhijie" <houzj.fnst@cn.fujitsu.com>
Re: A new function to wait for the backend exit after termination Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
RE: A new function to wait for the backend exit after termination "Hou, Zhijie" <houzj.fnst@cn.fujitsu.com>
Re: A new function to wait for the backend exit after termination Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
RE: A new function to wait for the backend exit after termination "Hou, Zhijie" <houzj.fnst@cn.fujitsu.com>
Re: A new function to wait for the backend exit after termination Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: A new function to wait for the backend exit after termination hou zhijie <houzj.fnst@cn.fujitsu.com>
Re: A new function to wait for the backend exit after termination Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: A new function to wait for the backend exit after termination "David G. Johnston" <david.g.johnston@gmail.com>
Re: A new function to wait for the backend exit after termination Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: A new function to wait for the backend exit after termination "David G. Johnston" <david.g.johnston@gmail.com>
Re: A new function to wait for the backend exit after termination Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
On Fri, Dec 4, 2020 at 8:44 AM Hou, Zhijie <houzj.fnst@cn.fujitsu.com> wrote:
>
> - however only superusers can terminate superuser backends.
> + however only superusers can terminate superuser backends. When no
> + <parameter>wait</parameter> and <parameter>timeout</parameter> are
> + provided, only SIGTERM is sent to the backend with the given process
> + ID and <literal>false</literal> is returned immediately. But the
>
> I test the case when no wait and timeout are provided.
> True is returned as the following which seems different from the doc.
>
> postgres=# select pg_terminate_backend(pid);
> pg_terminate_backend
> ----------------------
> t
> (1 row)
>
>
> - however only superusers can terminate superuser backends.
> + however only superusers can terminate superuser backends. When no
> + <parameter>wait</parameter> and <parameter>timeout</parameter> are
> + provided, only SIGTERM is sent to the backend with the given process
> + ID and <literal>false</literal> is returned immediately. But the
>
> I test the case when no wait and timeout are provided.
> True is returned as the following which seems different from the doc.
>
> postgres=# select pg_terminate_backend(pid);
> pg_terminate_backend
> ----------------------
> t
> (1 row)
>
Thanks for pointing that out. I reworded that statement. Attaching v5 patch. Please have a look.
В списке pgsql-hackers по дате отправления
От: Kyotaro Horiguchi
Дата: