Re: logical replication and PANIC during shutdown checkpoint in publisher
Michael Paquier <michael.paquier@gmail.com>
From: Michael Paquier <michael.paquier@gmail.com>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Petr Jelinek <petr.jelinek@2ndquadrant.com>,
Andres Freund <andres@anarazel.de>, Fujii Masao <masao.fujii@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2017-05-28T04:30:47Z
Lists: pgsql-hackers
Attachments
- walsender-shutdown-96.patch (application/octet-stream) patch
- walsender-shutdown-95.patch (application/octet-stream) patch
- walsender-shutdown-93.patch (application/octet-stream) patch
- walsender-shutdown-94.patch (application/octet-stream) patch
- walsender-shutdown-92.patch (application/octet-stream) patch
On Fri, May 26, 2017 at 4:47 PM, Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote: > On 5/26/17 14:16, Michael Paquier wrote: >> So, now that the last round of minor releases has happened and that >> some dust has settled on this patch, shouldn't there be a backpatch? >> If yes, do you need patches for all branches? This problems goes down >> to 9.2 anyway as BASE_BACKUP can generate end-of-backup records. > > Yes, this could be backpatched now. It looks like it will need a bit of > fiddling to get it into all the backbranches. If you want to give it a > closer look, go ahead please. Attached are patches for 9.2~9.6. There are a couple of conflicts across each version. Particularly in 9.2, I have made the choice to not rename walsender_ready_to_stop to got_SIGINT as this is used as well in basebackup.c to make clearer the code. In 9.3~ the use of this flag is located only within walsender.c. -- Michael
Commits
-
Prevent possibility of panics during shutdown checkpoint.
- 862204aaceb1 9.6.4 landed
- 50581f2e74fa 9.5.8 landed
- 1cdc0ab9c180 9.4.13 landed
- c6c333436491 10.0 landed
-
Revert "Prevent panic during shutdown checkpoint"
- 703f148e98ec 10.0 landed
-
Prevent panic during shutdown checkpoint
- 086221cf6b17 10.0 cited