Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqirZ-00017E-04 for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Mar 2017 16:11:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cqirY-0000Am-D9 for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Mar 2017 16:11:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cqiq1-0002Jy-8M for pgsql-hackers@postgresql.org; Wed, 22 Mar 2017 16:10:17 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqipr-00006i-Rx for pgsql-hackers@postgresql.org; Wed, 22 Mar 2017 16:10:14 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 1300C5F794; Wed, 22 Mar 2017 12:10:07 -0400 (EDT) Date: Wed, 22 Mar 2017 12:10:07 -0400 From: Stephen Frost To: Andrew Dunstan Cc: pgsql-hackers@postgresql.org, Michael Paquier Subject: Re: [COMMITTERS] pgsql: Sync pg_dump and pg_dumpall output Message-ID: <20170322161006.GM9812@tamriel.snowman.net> References: <20170322153920.GL9812@tamriel.snowman.net> <75e1b6ff-c3d5-9a26-e38b-3cb22a099ff0@2ndQuadrant.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="YD0yDUL6GGQ/a4po" Content-Disposition: inline In-Reply-To: <75e1b6ff-c3d5-9a26-e38b-3cb22a099ff0@2ndQuadrant.com> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 12:04:24 up 256 days, 17:28, 22 users, load average: 0.20, 0.15, 0.14 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --YD0yDUL6GGQ/a4po Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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 --YD0yDUL6GGQ/a4po Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJY0qHeAAoJEO1sijiDR2RVgHsP/0u+fsVNCJOHYq/wpjFsAAGn gYXYxOOgRvZc7XDUo4KOUJWKrP1i9ZkCOBwnaS2FpBAm29ifuDBdJaIaDyfL4LGn sPtN+QFQ84hh+uTV6K0b+Pu+uxFh6pQcR7cAiQNUmPyYLCGLwt8Aeqdr8QWh6Bei z2Y3ThGZQJMMdbAuXPxJrx9I5i2cKiP06gATBlDPw0m+Cu8HsPTA6CksoteDAZzB H/fm6x6CQZpmGJ+F9H/PyEytofxo+9/IDFf82iPaec53E5NF957EsJZFnNWvfY8z XP42yFetTjaR9T/I8lTC/g9KxH/+LuPJKGSHO+IG16mQ7vmALPfqngQXtouECIdb gPRkrKET56Qs9qGsBczKXDkSyMpmL/MqQqMo11KIrOTNsVj/AnpJo6wcMQPu1ng9 CBrpvfE48S8sw7rHZ5VLfRUhKbJyviCmw6N3azxVRqcN6NOIsN2VOXC1yqV4NLTf 3UpmknUCrDmisc1AKBmQNTux7yCRSuc/MznBlBysiJ+ueET0WoCeXGIDhit3nFQn LGJfHRNrZs3pyyCBn8hw8y+gZncebsjnMqiq9FtOrM9Y/qDcklhbcgq7F6Il2KnM OJH6pmvgwrkwIPP405ir1HAs4JOa70zqiVMlBbyaJXMLyIsJSEfeJwepdaXo6Qr5 R8//FwuBsjWsIx8ZofdN =XLc7 -----END PGP SIGNATURE----- --YD0yDUL6GGQ/a4po--