Re: BUG #13443: master will remove dead rows when hot standby(use slot) disconnect

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: BUG #13443: master will remove dead rows when hot standby(use slot) disconnect
Дата
Msg-id CAMkU=1w4AgJ38rcpdiERot6QRrgfPPMYuK-Q=J5Jy4D_ZZ6Avw@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #13443: master will remove dead rows when hot standby(use slot) disconnect  (digoal@126.com)
Ответы Re: BUG #13443: master will remove dead rows when hot standby(use slot) disconnect  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-bugs
On Mon, Jun 15, 2015 at 2:05 AM, <digoal@126.com> wrote:

> The following bug has been logged on the website:
>
> Bug reference:      13443
> Logged by:          digoal
> Email address:      digoal@126.com
> PostgreSQL version: Unsupported/Unknown
>


Does that mean you are using 9.5dev?  If so, do you see the same behavior
in 9.4.4?



> Operating system:   CentOS 6.x x64
> Description:
>
>
> http://www.postgresql.org/docs/devel/static/warm-standby.html#STREAMING-REPLICATION
>
> 25.2.6. Replication Slots
> Replication slots provide an automated way to ensure that the master does
> not remove WAL segments until they have been received by all standbys, and
> that the master does not remove rows which could cause a recovery conflict
> even when the standby is disconnected.
>
> In my test, master will remove rows when standby disconnect.
>

I can't reproduce this.  In my hands when the standby crashes, tuples on
the master are not removed until either that slot is destroyed on the
master, or until the standby reconnects.

Can you show us all the settings changes you have made to postgresql.conf
and recovery.conf, and to the replication slots table?

One potential doc bug I see is that the it seems to imply that replication
slots replaces the need for hot_standby_feedback, when it fact it must be
used in conjunction with it.  Do you have hot_standby_feedback turned on in
the standby?

Cheers,

Jeff

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

Предыдущее
От: brent.n.douglas@gmail.com
Дата:
Сообщение: BUG #13445: 8.15.1 is missleading regarding array dimensionality
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: BUG #13442: ISBN doesn't always roundtrip with text