Re: Index Scans become Seq Scans after VACUUM ANALYSE
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Curt Sampson <cjs@cynic.net>
Cc: "J. R. Nield" <jrnield@usol.com>, Bruce Momjian <pgman@candle.pha.pa.us>, Michael Loftis <mloftis@wgops.com>, mlw <markw@mohawksoft.com>, PostgreSQL Hacker <pgsql-hackers@postgresql.org>
Date: 2002-06-23T15:19:15Z
Lists: pgsql-hackers
Curt Sampson <cjs@cynic.net> writes: > This should also allow us to disable completely the ping-pong writes > if we have a disk subsystem that we trust. If we have a disk subsystem we trust, we just disable fsync on the WAL and the performance issue largely goes away. I concur with Bruce: the reason we keep page images in WAL is to minimize the number of places we have to fsync, and thus the amount of head movement required for a commit. Putting the page images elsewhere cannot be a win AFAICS. > Well, whether or not there's a cheap way depends on whether you consider > fsync to be cheap. :-) It's never cheap :-( regards, tom lane