Re: [HACKERS] Assertion failure when the non-exclusive pg_stop_backup aborted.
Masahiko Sawada <sawada.mshk@gmail.com>
From: Masahiko Sawada <sawada.mshk@gmail.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Fujii Masao <masao.fujii@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2017-11-21T09:32:18Z
Lists: pgsql-hackers
Attachments
- fix_do_pg_abort_backup_v9.patch (application/octet-stream) patch v9
On Tue, Nov 21, 2017 at 10:01 AM, Michael Paquier <michael.paquier@gmail.com> wrote: > On Tue, Nov 21, 2017 at 9:37 AM, Masahiko Sawada <sawada.mshk@gmail.com> wrote: >> On Tue, Nov 21, 2017 at 8:03 AM, Michael Paquier >> <michael.paquier@gmail.com> wrote: >>> You could just add "as this allows to keep backup counters kept in >>> shared memory consistent with the state of the session starting or >>> stopping a backup.". >> >> Thank you for the suggestion, Michael-san. Attached updated patch. >> Please review it. > > [nit] > + * or stoppping a backup. > s/stoppping/stopping/ Oops. > Fujii-san, please note that the same concept does not apply to > do_pg_start_backup(). > > * reason, *all* functionality between do_pg_start_backup() and > - * do_pg_stop_backup() should be inside the error cleanup block! > + * do_pg_stop_backup(), including do_pg_stop_backup() should be inside > + * the error cleanup block! > */ > Weirdly worded here. "between do_pg_start_backup until > do_pg_stop_backup is done" sounds better? Agreed. Thank you for comments. Attached updated patch. Regards, -- Masahiko Sawada NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center
Commits
-
Fix bug in cancellation of non-exclusive backup to avoid assertion failure.
- 0668c84e2857 9.6.7 landed
- 133d2fab2f83 10.2 landed
- 56a95ee5118b 11.0 landed