Re: cannot drop replication slot if server is running in single-user mode - Mailing list pgsql-hackers

From Tom Lane
Subject Re: cannot drop replication slot if server is running in single-user mode
Date
Msg-id 25024.1525789919@sss.pgh.pa.us
Whole thread Raw
In response to Re: cannot drop replication slot if server is running in single-user mode  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Mar 29, 2018 at 5:51 PM, Andres Freund <andres@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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Cast jsonb to numeric, int, float, bool
Next
From: Alvaro Herrera
Date:
Subject: Re: cannot drop replication slot if server is running in single-usermode