pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Raphael Hertzog <hertzog@debian.org>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Fails to work on live images due to fsync() on pg_commit_ts before doing any write there
Date: Tue, 7 Nov 2017 09:18:28 -0500
Message-ID: <20171107141827.GW4628@tamriel.snowman.net> (raw)
In-Reply-To: <20171107141338.getbacqd2vich7yi@alvherre.pgsql>
References: <20171107135454.lbelbbvfgadljmuj@home.ouaza.com>
	<20171107141338.getbacqd2vich7yi@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Alvaro, Raphael,

* Alvaro Herrera (alvherre@alvh.no-ip.org) wrote:
> Raphael Hertzog wrote:
> 
> > PostgreSQL 10 no longer works on a (Kali) live system where the
> > root filesystem is an overlayfs with an underlying squashfs
> > filesystem (where postgresql and its initial file structure
> > is present) and a writable tmpfs overlay.
> 
> Please create a machine that works this way and get it added to the
> buildfarm, so that this sort of thing doesn't surprise us in the future
> months after the fact.

While I agree with this, I'm not entirely convinced that this isn't an
issue with the implementation of the underlying filesystem after all.  I
haven't had a chance to go read those other bug reports, but my fsync()
manpage pretty clearly seems to say that fsync should only be returning
EINVAL if it's called on a special file (FIFO, pipe, et al).  There's
certainly no indication that it's ok for the same file to sometimes
support fsync() and other times *not* support fsync().  That's pretty
bizarre.

Why wouldn't it make sense for the filesystem to realize it's a no-op if
there's been no changes?

Thanks!

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (21+ messages)  latest in thread

Message-ID: <20171107141827.GW4628@tamriel.snowman.net>
Permalink:  ../20171107141827.GW4628@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20171107141827.GW4628@tamriel.snowman.net

 · 

reply

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: sfrost@snowman.net, alvherre@alvh.no-ip.org, hertzog@debian.org
  Subject: Re: Fails to work on live images due to fsync() on pg_commit_ts before doing any write there
  In-Reply-To: <20171107141827.GW4628@tamriel.snowman.net>
  References: <20171107135454.lbelbbvfgadljmuj@home.ouaza.com> <20171107141338.getbacqd2vich7yi@alvherre.pgsql> <20171107141827.GW4628@tamriel.snowman.net>

* 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