Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING file
От
Magnus Hagander
Тема
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file
Дата
Msg-id
CABUevExG2xEQhsKuth8Z=ndiRbV7d1QtM6rNrG+CXYd5ut9GGg@mail.gmail.com
Ответ на
Список
Дерево обсуждения
BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING file harukat@sraoss.co.jp
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Amit Kapila <amit.kapila16@gmail.com>
Re: BUG #14243: pg_basebackup failes by a
STATUS_DELETE_PENDING file Alvaro Herrera <alvherre@2ndquadrant.com>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING file Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #14243: pg_basebackup failes by a
STATUS_DELETE_PENDING file Andres Freund <andres@anarazel.de>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Magnus Hagander <magnus@hagander.net>
Re: BUG #14243: pg_basebackup failes by a
STATUS_DELETE_PENDING file Andres Freund <andres@anarazel.de>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Magnus Hagander <magnus@hagander.net>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Michael Paquier <michael.paquier@gmail.com>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Michael Paquier <michael.paquier@gmail.com>
Re: BUG #14243: pg_basebackup failes by a
STATUS_DELETE_PENDING file Tatsuo Ishii <ishii@postgresql.org>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Michael Paquier <michael.paquier@gmail.com>
Re: BUG #14243: pg_basebackup failes by a
STATUS_DELETE_PENDING file TAKATSUKA Haruka <harukat@sraoss.co.jp>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Magnus Hagander <magnus@hagander.net>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Michael Paquier <michael.paquier@gmail.com>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Magnus Hagander <magnus@hagander.net>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Michael Paquier <michael.paquier@gmail.com>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Michael Paquier <michael.paquier@gmail.com>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Magnus Hagander <magnus@hagander.net>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Michael Paquier <michael.paquier@gmail.com>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Magnus Hagander <magnus@hagander.net>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Michael Paquier <michael.paquier@gmail.com>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Michael Paquier <michael.paquier@gmail.com>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Michael Paquier <michael.paquier@gmail.com>
Re: BUG #14243: pg_basebackup failes by a
STATUS_DELETE_PENDING file Alvaro Herrera <alvherre@2ndquadrant.com>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Michael Paquier <michael.paquier@gmail.com>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Michael Paquier <michael.paquier@gmail.com>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Kevin Grittner <kgrittn@gmail.com>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Michael Paquier <michael.paquier@gmail.com>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Magnus Hagander <magnus@hagander.net>
Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING
file Michael Paquier <michael.paquier@gmail.com>
Re: [BUGS] BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDINGfile Magnus Hagander <magnus@hagander.net>
Re: [BUGS] BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDINGfile Michael Paquier <michael.paquier@gmail.com>
Re: [BUGS] BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDINGfile Magnus Hagander <magnus@hagander.net>
Re: [BUGS] BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDINGfile Michael Paquier <michael.paquier@gmail.com>
Re: [BUGS] BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDINGfile Magnus Hagander <magnus@hagander.net>
On Tue, Aug 16, 2016 at 9:54 PM, Andres Freund wrote: > On 2016-07-12 19:05:16 -0400, Tom Lane wrote: > > Alvaro Herrera writes: > > >> On Tue, Jul 12, 2016 at 2:02 PM, wrote: > > >>> It means file 16444 is in STATUS_DELETE_PENDING. > > > > > This file is probably being deleted by a checkpoint after some user > > > transaction marked it for removal (either because the relation was > > > dropped, or because it got a new relfilenode). I would say that the > > > file is not needed for the backup after all and pg_basebackup should > > > just ignore it. > > > > Yeah. The question is how do we distinguish that from cases that > > are less benign. > > One approach would be to rename the file into something indicating it's > being deleted, before actually deleting it. > > That would be an option (IIRC if you open with FILE_SHARE_DELETE, it can also be renamed). But if we can track the delete when we try to open it and just treat it as "file does not exist", that seems cleaner. -- Magnus Hagander Me: http://www.hagander.net/ Work: http://www.redpill-linpro.com/
В списке pgsql-bugs по дате отправления