register/unregister standby Re: Synchronous replication

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема register/unregister standby Re: Synchronous replication
Дата
Msg-id AANLkTimCZZ3oHEhZms3Hi7DRSz-nYrZ7s6w_Nu7tMgdS@mail.gmail.com
обсуждение исходный текст
Ответы Re: register/unregister standby Re: Synchronous replication  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Re: register/unregister standby Re: Synchronous replication  (Thom Brown <thom@linux.com>)
Список pgsql-hackers
On Tue, Aug 10, 2010 at 5:58 AM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:
> On 05/08/10 17:14, Fujii Masao wrote:
>>
>> I'm thinking to make users register and unregister each standbys via SQL
>> functions like register_standby() and unregister_standby():
>
> The register/unregister facility should be accessible from the streaming
> replication connection, so that you don't need to connect to any particular
> database in addition to the streaming connection.

Probably I've not understood your point correctly yet.

I think that the advantage of registering standbys is that we can
specify which WAL files the master has to keep for the upcoming
standby. IMO, it's usually called together with pg_start_backup
as follows:
   SELECT register_standby('foo', pg_start_backup())

This requests the master keep to all the WAL files following the
backup starting location which pg_start_backup returns. Now we
can do that by using wal_keep_segments, but it's not easy to set
because it's difficult to predict how many WAL files the standby
will require.

So I've thought that the register/unregister facility should be
used from the normal client connection. Why do you think it should
be accessible from the SR connection?

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: string function - "format" function proposal
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: pg_subtrans keeps bloating up in the standby