From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: anjali_524 <anjali_524@yahoo.co.in>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #6372: Error while creating database with fsync parameter as on incase of CIFS
Date: Sun, 26 Aug 2012 22:19:40 -0400
Message-ID: <20120827021940.GB28780@momjian.us> (raw)
In-Reply-To: <2113.1325538019@sss.pgh.pa.us>
References: <E1RhkjA-0005bq-B6@wrigleys.postgresql.org>
<CABUevEzRd6TT89dx5AG_ceLgrvg7KTpCFmM8=iKvVL-HRHoM6w@mail.gmail.com>
<1149.1325535272@sss.pgh.pa.us>
<CABUevEww2AKdVqU3n8wi-zpSsqVPKn8xxCk4io3nzv6O7UZMqQ@mail.gmail.com>
<1476.1325536113@sss.pgh.pa.us>
<1325537384-sup-6201@alvh.no-ip.org>
<2113.1325538019@sss.pgh.pa.us>
On Mon, Jan 2, 2012 at 04:00:19PM -0500, Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > Excerpts from Tom Lane's message of lun ene 02 17:28:33 -0300 2012:
> >> it seems like EINVAL is a considerably more reasonable thing to return
> >> than EBADF, if the filesystem is trying to tell you that it won't fsync
> >> a directory. So I'm a bit surprised this question hasn't come up for
> >> other filesystems.
>
> > Probably because other filesystems do allow you to fsync directories.
> > In fact for some cases they _require_ it ... remember the fiasco when
> > MTA writers were told that they needed to fsync their queue dirs in
> > order for all queued email to persist?
>
> Yeah, the long and the short of it is that if the filesystem won't
> accept an fsync on a directory, we have to assume that it doesn't need
> it and will manage metadata persistence safely without prodding.
>
> The only real question here is whether an EINVAL could mean something
> besides "fsync on directory is not accepted". If there are any
> scenarios where it represents a transient/fixable error, then we'd
> want to report it. It's far from clear to me that there are any
> though. What it could mean in general is not at issue, because we
> know the target is a directory that we just created moments before.
I assume this never got resolved. Should it be changed to ignore
EINVAL?
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: bruce@momjian.us, tgl@sss.pgh.pa.us, alvherre@commandprompt.com, magnus@hagander.net, anjali_524@yahoo.co.in
Subject: Re: BUG #6372: Error while creating database with fsync parameter as on incase of CIFS
In-Reply-To: <20120827021940.GB28780@momjian.us>
References: <E1RhkjA-0005bq-B6@wrigleys.postgresql.org> <CABUevEzRd6TT89dx5AG_ceLgrvg7KTpCFmM8=iKvVL-HRHoM6w@mail.gmail.com> <1149.1325535272@sss.pgh.pa.us> <CABUevEww2AKdVqU3n8wi-zpSsqVPKn8xxCk4io3nzv6O7UZMqQ@mail.gmail.com> <1476.1325536113@sss.pgh.pa.us> <1325537384-sup-6201@alvh.no-ip.org> <2113.1325538019@sss.pgh.pa.us> <20120827021940.GB28780@momjian.us>
* 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