From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Benjamin Arai <barai(at)cs(dot)ucr(dot)edu> |
Cc: | pgsql-admin(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org |
Subject: | Re: [GENERAL] Running with fsync=off |
Date: | 2005-12-22 08:08:07 |
Message-ID: | 20051222080759.GB21783@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general |
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(at)svana(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | uva raj | 2005-12-22 09:42:53 | execute batch |
Previous Message | sandhya | 2005-12-22 07:46:31 | Fw: How to get OID return value(pls help me) |
From | Date | Subject | |
---|---|---|---|
Next Message | John Sidney-Woollett | 2005-12-22 08:46:32 | Mem usage/leak - advice needed |
Previous Message | John Dean | 2005-12-22 07:31:04 | Is CREATE TYPE an alias for CREATE DOMAIN? |