Hi, On 2022-07-01 17:41:05 +0200, Alvaro Herrera wrote: > Nicola Contu reported two years ago to pgsql-general[1] that they were > having sporadic query failures, because EINTR is reported on some system > call. I have been told that the problem persists, though it is very > infrequent. I propose the attached patch. Kyotaro proposed a slightly > different patch which also protects write(), but I think that's not > necessary.
What is the reason for the || ProcDiePending || QueryCancelPending bit? What if there's dsm operations intentionally done while QueryCancelPending? Greetings, Andres Freund