Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher
От
Michael Paquier
Тема
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher
Дата
Msg-id
CAB7nPqQ-miZy7R2+uMJRZ26spS14E5ioHv7HFZQN_f5w0Ef6KQ@mail.gmail.com
Ответ на
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher (Peter Eisentraut)
Список
Дерево обсуждения
[HACKERS] logical replication and PANIC during shutdown checkpoint in publisher Fujii Masao <masao.fujii@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Fujii Masao <masao.fujii@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Andres Freund <andres@anarazel.de>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Andres Freund <andres@anarazel.de>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Andres Freund <andres@anarazel.de>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Andres Freund <andres@anarazel.de>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Andres Freund <andres@anarazel.de>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Andres Freund <andres@anarazel.de>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Andres Freund <andres@anarazel.de>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Andres Freund <andres@anarazel.de>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Andres Freund <andres@anarazel.de>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Andres Freund <andres@anarazel.de>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Petr Jelinek <petr.jelinek@2ndquadrant.com>
[HACKERS] Re: logical replication and PANIC during shutdown checkpoint inpublisher Noah Misch <noah@leadboat.com>
Re: [HACKERS] Re: logical replication and PANIC during shutdowncheckpoint in publisher Petr Jelinek <petr.jelinek@2ndquadrant.com>
[HACKERS] Re: logical replication and PANIC during shutdown checkpoint inpublisher Noah Misch <noah@leadboat.com>
Re: [HACKERS] Re: logical replication and PANIC during shutdowncheckpoint in publisher Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Re: logical replication and PANIC during shutdowncheckpoint in publisher Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Re: logical replication and PANIC during shutdowncheckpoint in publisher Noah Misch <noah@leadboat.com>
Re: [HACKERS] Re: logical replication and PANIC during shutdowncheckpoint in publisher Noah Misch <noah@leadboat.com>
Re: [HACKERS] Re: logical replication and PANIC during shutdowncheckpoint in publisher Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Re: logical replication and PANIC during shutdowncheckpoint in publisher Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Re: logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Fujii Masao <masao.fujii@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Fujii Masao <masao.fujii@gmail.com>
Re: [HACKERS] logical replication and PANIC during shutdowncheckpoint in publisher Michael Paquier <michael.paquier@gmail.com>
On Wed, May 3, 2017 at 12:25 AM, Peter Eisentraut wrote: > On 5/2/17 10:08, Michael Paquier wrote: >> On Tue, May 2, 2017 at 9:30 PM, Peter Eisentraut >> wrote: >>> On 5/2/17 03:11, Petr Jelinek wrote: >>>> logical decoding can theoretically >>>> do HOT pruning (even if the chance is really small) so it's not safe to >>>> start logical replication either. >>> >>> This seems a bit impossible to resolve. On the one hand, we want to >>> allow streaming until after the shutdown checkpoint. On the other hand, >>> streaming itself might produce new WAL. >> >> It would be nice to split things into two: >> - patch 1 adding the signal handling that wins a backpatch. >> - patch 2 fixing the side cases with logical decoding. > > The side cases with logical decoding are also not new and would need > backpatching, AIUI. Okay, I thought that there was some new concept part of logical replication here. >>> Can we prevent HOT pruning during logical decoding? >> >> It does not sound much difficult to do, couldn't you just make it a >> no-op with am_walsender? > > That's my hope. The only code path doing HOT-pruning and generating WAL is heap_page_prune(). Do you think that we need to worry about FPWs as well? Attached is an updated patch, which also forbids the run of any replication commands when the stopping state is reached. -- Michael -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления
От: Amit Kapila
Дата:
От: Amit Kapila
Дата: