Re: [BUGS] Fails to work on live images due to fsync() onpg_commit_ts before doing any write there - Mailing list pgsql-bugs

From Stephen Frost
Subject Re: [BUGS] Fails to work on live images due to fsync() onpg_commit_ts before doing any write there
Date
Msg-id 20171107150002.GY4628@tamriel.snowman.net
Whole thread Raw
In response to Re: [BUGS] Fails to work on live images due to fsync() on pg_commit_ts before doing any write there  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [BUGS] Fails to work on live images due to fsync() on pg_commit_ts before doing any write there  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Stephen Frost <sfrost@snowman.net> writes:
> > * Raphael Hertzog (hertzog@debian.org) wrote:
> >> Still I believe that this issue should be fixed in both sides. It's not
> >> smart from PostgreSQL to call fsync() when it has not made any change.
>
> > Why?
>
> My thought about this is just to ignore EINVAL when fsync'ing a directory,
> as we already do with EBADF.

Yeah, I suppose we could, just not sure that an EINVAL should really be
getting returned here, imv.

Thanks!

Stephen

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] Fails to work on live images due to fsync() on pg_commit_ts before doing any write there
Next
From: Andres Freund
Date:
Subject: Re: [BUGS] Fails to work on live images due to fsync() onpg_commit_ts before doing any write there