From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Josh Berkus <josh(at)agliodbs(dot)com> |
Cc: | Andres Freund <andres(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Replication slots and footguns |
Date: | 2014-03-13 20:17:42 |
Message-ID: | CA+Tgmoa3JcHPcbXo1426aQ2itkz1brv28181nvp06Fg=3eMriw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Mar 13, 2014 at 1:03 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> On 03/13/2014 04:07 AM, Andres Freund wrote:
>> On 2014-03-12 13:34:47 -0700, Josh Berkus wrote:
>>> On 03/12/2014 12:34 PM, Robert Haas wrote:
>>>>>> Urgh. That error message looks susceptible to improvement. How about:
>>>>>>>>
>>>>>>>> replication slot "%s" cannot be dropped because it is currently in use
>>>>>>
>>>>>> I think that'd require duplicating some code between acquire and drop,
>>>>>> but how about "replication slot "%s" is in use by another backend"?
>>>> Sold.
>>>
>>> Wait ... before you go further ... I object to dropping the word
>>> "active" from the error message. The column is called "active", and
>>> that's where a DBA should look; that word needs to stay in the error
>>> message.
>>
>> "replication slot "%s" is in active in another backend"?
>
> "*for* another backend", but that works for me. I just want to keep the
> word "active", because when I encountered that error in testing I knew
> *immediately* where to look because of the word.
I think "in use" is just as clear as active, and I think the text
Andres proposed previously reads a whole lot more nicely than this:
replication slot "%s" is in use by another backend
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2014-03-13 20:20:12 | Re: [PATCH] Store Extension Options |
Previous Message | Fabien COELHO | 2014-03-13 19:21:16 | Re: gaussian distribution pgbench |