Re: Pg_ctl promote -- wait for slave to be promoted fully ?

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Pg_ctl promote -- wait for slave to be promoted fully ?
Date: 2012-08-07 20:37:06
Message-ID: CA+TgmobqgGqn2zRaOKXPj_zwskGfwzohqVWd2m4JQe1J7biRWA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Tue, Aug 7, 2012 at 1:09 PM, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
> On Tue, Aug 7, 2012 at 10:22 PM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>> Should we consider if we can make "pg_ctl -w" work for "promote" as well?
>
> +1
>
>> The main problem is, I guess, that it can't log in - so wed' need
>> something like "PQping()" that actually checked if it was master or
>> slave?
>
> Yes.

Is there a security concern with exposing this information to people
who haven't authenticated?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bob Pawley 2012-08-07 22:26:25 Using Insert with case
Previous Message Merlin Moncure 2012-08-07 19:45:31 Re: JSON in 9.2: limitations

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2012-08-07 20:52:25 Re: Inserting heap tuples in bulk in COPY
Previous Message Peter Geoghegan 2012-08-07 20:10:11 Re: WIP: pg_pretty_query