Re: Should we nonblocking open FIFO files in COPY? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Should we nonblocking open FIFO files in COPY?
Date
Msg-id CA+TgmobJJKwrTs6oKw4mgBp8XFiMtSQCxPY0JPEPjkbk35N6+w@mail.gmail.com
Whole thread Raw
In response to Should we nonblocking open FIFO files in COPY?  (Adam Lee <ali@pivotal.io>)
Responses Re: Should we nonblocking open FIFO files in COPY?  (Adam Lee <ali@pivotal.io>)
List pgsql-hackers
On Thu, Dec 21, 2017 at 10:10 PM, Adam Lee <ali@pivotal.io> wrote:
> I have an issue that COPY from a FIFO, which has no writers, could not be
> canceled, because COPY invokes AllocateFile() -> fopen() -> blocking open().

Hmm.  What about the case where we try to open a plain file that's on
an inaccessible filesystem, e.g. due to a disk failure?  Allowing
cancel to work just for FIFOs would be OK, I guess, but allowing it
for other open() calls that hang would be better.  I'm not sure if we
can make it work that way, but it would be nice if we could.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] pow support for pgbench
Next
From: Peter Eisentraut
Date:
Subject: Re: [JDBC] [HACKERS] Channel binding support for SCRAM-SHA-256