Re: EINTR in ftruncate() - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: EINTR in ftruncate()
Date
Msg-id 20220704110750.li6iiwivv4smgmbx@alvherre.pgsql
Whole thread Raw
In response to Re: EINTR in ftruncate()  (Andres Freund <andres@anarazel.de>)
Responses Re: EINTR in ftruncate()
List pgsql-hackers
On 2022-Jul-01, Andres Freund wrote:

> On 2022-07-01 19:55:16 +0200, Alvaro Herrera wrote:
> > On 2022-Jul-01, Andres Freund wrote:

> > > What is the reason for the || ProcDiePending || QueryCancelPending bit? What
> > > if there's dsm operations intentionally done while QueryCancelPending?
> > 
> > That mirrors the test for the other block in that function, which was
> > added by 63efab4ca139, whose commit message explains:

> That whole approach seems quite wrong to me. At the absolute very least the
> code needs to check if interrupts are being processed in the current context
> before just giving up due to ProcDiePending || QueryCancelPending.

For the time being, I can just push the addition of the EINTR retry
without testing ProcDiePending || QueryCancelPending.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"El sudor es la mejor cura para un pensamiento enfermo" (Bardia)

Attachment

pgsql-hackers by date:

Previous
From: Przemysław Sztoch
Date:
Subject: Re: generate_series for timestamptz and time zone problem
Next
From: Przemysław Sztoch
Date:
Subject: Re: generate_series for timestamptz and time zone problem