From: TAKATSUKA Haruka <harukat@sraoss.co.jp>
To: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING file
Date: Wed, 3 Aug 2016 14:18:24 +0900
Message-ID: <20160803141824.0f5f5c16.harukat@sraoss.co.jp> (raw)
In-Reply-To: <CAB7nPqSWKjJMCkNTB8qikcjdYDtwcmCeasEquWKtanAfp2OTXw@mail.gmail.com>
References: <20160712225404.GA892041@alvherre.pgsql>
<13701.1468364716@sss.pgh.pa.us>
<CAB7nPqTq0O+edHm8buV2s6SEV6WsdEDysWKeOunpiOgLWLSSCg@mail.gmail.com>
<CAB7nPqSWKjJMCkNTB8qikcjdYDtwcmCeasEquWKtanAfp2OTXw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
I study this a little more, but I cannot find the way to distinguish
STATUS_DELETE_PENDING state from the other state that causes permission
denied error.
Cmd.exe's "dir /q" may distinguish these, but I cannot know which API
is used.
-----------------
Haruka Takatsuka
harukat@sraoss.co.jp
On Wed, 13 Jul 2016 10:10:37 +0900
Michael Paquier <michael.paquier@gmail.com> wrote:
> On Wed, Jul 13, 2016 at 10:06 AM, Michael Paquier
> <michael.paquier@gmail.com> wrote:
> > Checking directly for STATUS_DELETE_PENDING would be the way to go,
> > likely with tweaks in basebackup.c. but like Takatsuka-san, I cannot
> > find anything around that would allow us to check for that.
> >
> > [1]: http://stackoverflow.com/questions/6680491/why-does-windows-return-error-access-denied-when-i-try-to...
>
> Actually we may want to tweak stat() to not complain for a file with
> such a state.
> --
> Michael
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: harukat@sraoss.co.jp
Subject: Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING file
In-Reply-To: <20160803141824.0f5f5c16.harukat@sraoss.co.jp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox