Re: Switch pg_basebackup to use -X stream instead of -X fetch by default?

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Switch pg_basebackup to use -X stream instead of -X fetch by default?
Дата
Msg-id CABUevEyq6_BZu7J3=COVi1imEJ_Ob3mtJw6LDLjtTPrsAMnMKg@mail.gmail.com
обсуждение исходный текст
Ответ на Switch pg_basebackup to use -X stream instead of -X fetch by default?  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: Switch pg_basebackup to use -X stream instead of -X fetch by default?  (Andres Freund <andres@2ndquadrant.com>)
Re: Switch pg_basebackup to use -X stream instead of -X fetch by default?  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
On Mon, Aug 25, 2014 at 1:35 PM, Andres Freund <andres@2ndquadrant.com> wrote:
> Hi,
>
> currently pg_basebackup uses fetch mode when only -x is specified -
> which imo isn't a very good thing to use due to the increased risk of
> not fetching everything.
> How about switching to stream mode for 9.5+?

I think the original reasons were to not change the default behaviour
with a new feature, and secondly because defaulting to -X requires two
replication connections rather than one.

I think the first reason is gone now, and the risk/damage of the two
connections is probably smaller than running out of WAL. -x is a good
default for smaller systems, but -X is a safer one for bigger ones. So
I agree that changing the default mode would make sense.


-- Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Per table autovacuum vacuum cost limit behaviour strange
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Switch pg_basebackup to use -X stream instead of -X fetch by default?