Re: Hang issue when COPY to/from an unopened FIFO - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Hang issue when COPY to/from an unopened FIFO
Date
Msg-id 1619.1468506042@sss.pgh.pa.us
Whole thread Raw
In response to Hang issue when COPY to/from an unopened FIFO  (Kenan Yao <kyao@pivotal.io>)
Responses Re: Hang issue when COPY to/from an unopened FIFO  (Stephen Frost <sfrost@snowman.net>)
Re: Hang issue when COPY to/from an unopened FIFO  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Kenan Yao <kyao@pivotal.io> writes:
> -- mkfifo /tmp/test.dat # bash
> copy pg_class to '/tmp/test.dat';
> -- try pg_cancel_backend or pg_terminate_backend from other sessions

This does not seem like a supported case to me.  I see few if any reasons
to want to do that rather than doing copy-to-program or copy-to-client.
We're certainly not going to want to add any overhead to the COPY code
paths in order to allow it.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: pg_xlogdump follow into the future
Next
From: Stephen Frost
Date:
Subject: Re: Hang issue when COPY to/from an unopened FIFO