Re: pg_dump, pg_dumpall and data durability
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Michael Paquier <michael.paquier@gmail.com>, Albe Laurenz <laurenz.albe@wien.gv.at>, PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Date: 2016-11-15T16:27:14Z
Lists: pgsql-hackers
On Sun, Nov 13, 2016 at 4:18 AM, Andres Freund <andres@anarazel.de> wrote: > On 2016-11-08 18:18:01 -0500, Tom Lane wrote: >> I think this might be better addressed by adding something to backup.sgml >> pointing out that you'd better fsync or sync your backups before assuming >> that they can't be lost. > > How does a normal user do that? I don't think there's a cross-platform > advice we can give, and even on *nix the answer basically is 'sync; > sync;' which is a pretty big hammer, and might be completely > unacceptable on a busy server. Yeah, that's a pretty fair point. I see the point of this patch pretty clearly but somehow it makes me nervous anyway. I'm not sure there's any better alternative to what's being proposed, though. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Sync pg_dump and pg_dumpall output
- 96a7128b7b4c 10.0 landed