Re: remove flatfiles.c - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: remove flatfiles.c
Date
Msg-id 1251791038.2889.42.camel@ebony.2ndQuadrant
Whole thread Raw
In response to remove flatfiles.c  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: remove flatfiles.c
List pgsql-hackers
On Mon, 2009-08-31 at 18:53 -0400, Alvaro Herrera wrote:

> Regarding sync commits that previously happen and now won't, I think the
> only case worth worrying about is the one in vacuum.c.  Do we need a
> ForceSyncCommit() in there?  I'm not sure if vacuum itself already
> forces sync commit.

VACUUM FULL requires ForceSyncCommit().

Not sure why removing them elsewhere is important? Getting robustness
wrong is a big, bad thing and this opens us to future error. We already
tuned VACUUM so it does very little if it has no work to do, why would
one extra I/O improve things so much? If it ain't broke... 

VACUUM does so many things that I'd rather have it all safely on disk.
I'd feel happier with the rule "VACUUM always sync commits", so we all
remember it and can rely upon it to be the same from release to release.

-- Simon Riggs           www.2ndQuadrant.com



pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: pgbench hard coded constants
Next
From: Dimitri Fontaine
Date:
Subject: binary compat