On Tue, Aug 24, 2021 at 1:15 AM Fujii Masao <masao.fu...@oss.nttdata.com> wrote: > > Oh, you're right. But I guess a similar problem could also occur in > > response to pg_terminate_backend(), no? > > There seems no problem in that case because pg_terminate_backend() causes > a backend to set ProcDiePending to true in die() signal hander and > ProcessClientWriteInterrupt() called by secure_write() handles ProcDiePending. > No?
Hmm, maybe you're right. What about pg_cancel_backend()? -- Robert Haas EDB: http://www.enterprisedb.com