Re: File descriptors inherited by restore_command - Mailing list pgsql-hackers

From Tom Lane
Subject Re: File descriptors inherited by restore_command
Date
Msg-id 30625.1561127093@sss.pgh.pa.us
Whole thread Raw
In response to Re: File descriptors inherited by restore_command  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I wrote:
> In practice, as long as we use O_CLOEXEC
> for files opened by fd.c, that would eliminate the actual too-many-fds
> hazard.  I don't object to desultorily looking around for other places
> where we might want to add it, but personally I'd be satisfied with a
> patch that CLOEXEC-ifies fd.c.

Actually, even that much coverage might be exciting.  Be sure to test
patch with EXEC_BACKEND to see if it causes zapping of any files the
postmaster needs to pass down to backends.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: File descriptors inherited by restore_command
Next
From: Stephen Frost
Date:
Subject: Re: File descriptors inherited by restore_command