From: Martijn van Oosterhout <kleptog@svana.org>
To: Benjamin Arai <barai@cs.ucr.edu>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Running with fsync=off
Date: Thu, 22 Dec 2005 09:08:07 +0100
Message-ID: <20051222080759.GB21783@svana.org> (raw)
In-Reply-To: <43AA5607.20000@cs.ucr.edu>
References: <43AA5607.20000@cs.ucr.edu>
On Wed, Dec 21, 2005 at 11:30:15PM -0800, Benjamin Arai wrote:
> I want to be able to do large updates on an existing backed up database
> with fsync=off but at the end of the updates how do I ensure that the
> data gets synced?
Do you know if that actually makes it much faster? Maybe you're better
off splitting WAL into a seperate disk.
> Somebody said running "sync ; sync; sync" from the console. This seems
> reasonable but why not just "sync" or is there another command I should
> ruyn after the update either in postgres or the console?
The reason is partly historical. On some OSes running sync only starts
the process but returns immediatly. However, there can only be one sync
at a time so the second sync waits for the first the finish. The third
is just for show. However, on Linux at least the one sync is enough.
Don't you need to restart postgres to change that parameter anyway?
Have a nice day,
--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
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-admin@postgresql.org
Cc: kleptog@svana.org, barai@cs.ucr.edu, pgsql-general@postgresql.org
Subject: Re: [GENERAL] Running with fsync=off
In-Reply-To: <20051222080759.GB21783@svana.org>
References: <43AA5607.20000@cs.ucr.edu> <20051222080759.GB21783@svana.org>
* 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