RE: A new function to wait for the backend exit after termination - Mailing list pgsql-hackers

From Hou, Zhijie
Subject RE: A new function to wait for the backend exit after termination
Date
Msg-id d227d6cf8ec447f6a680c08eebae1957@G08CNEXMBPEKD05.g08.fujitsu.local
Whole thread Raw
In response to Re: A new function to wait for the backend exit after termination  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Responses Re: A new function to wait for the backend exit after termination
List pgsql-hackers
Hi,

-        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)

Best regards,
houzj




pgsql-hackers by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: Huge memory consumption on partitioned table with FKs
Next
From: Kasahara Tatsuhito
Date:
Subject: Re: autovac issue with large number of tables