Robert Haas <robertmh...@gmail.com> writes: > On Thu, Mar 29, 2018 at 5:51 PM, Andres Freund <and...@anarazel.de> wrote: >> I'm not sure we need to do anything about this, personally. This seems >> like a fairly rare thing to do in a mode that's definitely not intended >> to be general purpose.
> Mmmph. I don't really think it's possible to view a user-visible > EBADF as anything other than a coding error. If we think this is worth spending any code at all on, what I'd suggest is to reject replication-related commands at some early stage if not IsUnderPostmaster. regards, tom lane