Re: A new function to wait for the backend exit after termination

From: Noah Misch <noah(at)leadboat(dot)com>
To: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Cc: Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, "Hou, Zhijie" <houzj(dot)fnst(at)cn(dot)fujitsu(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org, Muhammad Usama <m(dot)usama(at)gmail(dot)com>
Subject: Re: A new function to wait for the backend exit after termination
Date: 2021-06-12 04:37:50
Message-ID: 20210612043750.GA639098@rfd.leadboat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Jun 11, 2021 at 08:54:08PM -0500, Justin Pryzby wrote:
> On Sat, Jun 05, 2021 at 12:08:01PM -0700, Noah Misch wrote:
> > > > My preference is to remove pg_wait_for_backend_termination(). The use case
> > > > that prompted this thread used pg_terminate_backend(pid, 180000); it doesn't
> > > > need pg_wait_for_backend_termination().
>
> Is this an Opened Issue ?

An Open Item? Not really, since there's no objective defect. Nonetheless,
the attached is what I'd like to use.

Attachment Content-Type Size
pg_wait_for_backend_termination-v1.patch text/plain 5.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2021-06-12 04:42:55 Re: use `proc->pgxactoff` as the value of `index` in `ProcArrayRemove()`
Previous Message Thomas Munro 2021-06-12 04:24:01 Re: Add client connection check during the execution of the query