pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org
Cc: Michael Paquier <michael.paquier@gmail.com>
Subject: Re: [COMMITTERS] pgsql: Sync pg_dump and pg_dumpall output
Date: Wed, 22 Mar 2017 12:10:07 -0400
Message-ID: <20170322161006.GM9812@tamriel.snowman.net> (raw)
In-Reply-To: <75e1b6ff-c3d5-9a26-e38b-3cb22a099ff0@2ndQuadrant.com>
References: <E1cqh86-0003yK-OG@gemulon.postgresql.org>
	<20170322153920.GL9812@tamriel.snowman.net>
	<75e1b6ff-c3d5-9a26-e38b-3cb22a099ff0@2ndQuadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Andrew,

* Andrew Dunstan (andrew.dunstan@2ndquadrant.com) wrote:
> On 03/22/2017 11:39 AM, Stephen Frost wrote:
> > * Andrew Dunstan (andrew@dunslane.net) wrote:
> >> Sync pg_dump and pg_dumpall output
> > This probably should have adjusted all callers of pg_dump in the
> > regression tests to use the --no-sync option, otherwise we'll end up
> > spending possibly a good bit of time calling fsync() during the
> > regression tests unnecessairly.
> 
> All of them? The imnpact is not likely to be huge in most cases
> (possibly different on Windows). On crake, the bin-check stage actually
> took less time after the change than before, so I suspect that the
> impact will be pretty small.

Well, perhaps not all, but I'd think --no-sync would be better to have
in most cases.  We turn off fsync for all of the TAP tests and all
initdb calls, so it seems like we should here too.  Perhaps it won't be
much overhead on an unloaded system, but not all of the buildfarm
animals seem to be on unloaded systems, nor are they particularly fast
in general or have fast i/o..

> Still I agree that we should have tests for both cases.

Perhaps, though if I recall correctly, we've basically had zero calls
for fsync() until this.  If we don't feel like we need to test that in
the backend then it seems a bit silly to feel like we need it for
pg_dump's regression coverage.

That said, perhaps the right answer is to have a couple tests for both
the backend and for pg_dump which do exercise the fsync-enabled paths.

Thanks!

Stephen

Attachments:

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

view thread (10+ messages)  latest in thread

Message-ID: <20170322161006.GM9812@tamriel.snowman.net>
Permalink:  ../20170322161006.GM9812@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20170322161006.GM9812@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-committers@postgresql.org
  Cc: sfrost@snowman.net, andrew.dunstan@2ndquadrant.com, pgsql-hackers@postgresql.org, michael.paquier@gmail.com
  Subject: Re: [COMMITTERS] pgsql: Sync pg_dump and pg_dumpall output
  In-Reply-To: <20170322161006.GM9812@tamriel.snowman.net>
  References: <E1cqh86-0003yK-OG@gemulon.postgresql.org> <20170322153920.GL9812@tamriel.snowman.net> <75e1b6ff-c3d5-9a26-e38b-3cb22a099ff0@2ndQuadrant.com> <20170322161006.GM9812@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