Re: select limit error in file_fdw

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Erik Rijkers <er@xs4all.nl>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2018-12-16T16:14:57Z
Lists: pgsql-hackers
I wrote:
> It remains unclear why you had an intervening shell process when
> I didn't, but perhaps that can be chalked up to use of a different
> shell?

To provide some data on that: popen() is presumably invoking /bin/sh,
which on my box is

$ /bin/sh --version
GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)

$ rpm -qf /bin/sh
bash-4.1.2-48.el6.x86_64

			regards, tom lane


Commits

  1. Improve detection of child-process SIGPIPE failures.

  2. Handle EPIPE more sanely when we close a pipe reading from a program.