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 a9ca70dbf9a34f5fbd3b2b53c3a71741@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,

When test pg_terminate_backend_and_wait with parallel query.
I noticed that the function is not defined as parallel safe.

I am not very familiar with the standard about whether a function should be parallel safe.
But I found the following function are all defined as parallel safe:

pg_promote
pg_terminate_backend(integer)
pg_sleep*

Is there a reason why pg_terminate_backend_and_wait are not parallel safe ?
(I'm sorry if I miss something in previous mails.)

Best regards,
houzj



pgsql-hackers by date:

Previous
From: Bharath Rupireddy
Date:
Subject: Re: [PATCH] postgres_fdw connection caching - cause remote sessions linger till the local session exit
Next
From: Amit Kapila
Date:
Subject: Re: Single transaction in the tablesync worker?