Re: cannot drop replication slot if server is running in single-user mode

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, Bruce Momjian <bruce(at)momjian(dot)us>, tushar <tushar(dot)ahuja(at)enterprisedb(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: cannot drop replication slot if server is running in single-user mode
Date: 2018-05-08 14:31:59
Message-ID: 25024.1525789919@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> On Thu, Mar 29, 2018 at 5:51 PM, Andres Freund <andres(at)anarazel(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2018-05-08 14:37:25 Re: cannot drop replication slot if server is running in single-user mode
Previous Message Tom Lane 2018-05-08 14:27:37 Re: Cast jsonb to numeric, int, float, bool