Re: [HACKERS] Problem with the numbers I reported yesterday - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Problem with the numbers I reported yesterday
Date
Msg-id 199802121447.JAA24934@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] Problem with the numbers I reported yesterday  ("Boersenspielteam" <boersenspiel@vocalweb.de>)
Responses Re: [HACKERS] Problem with the numbers I reported yesterday  (ocie@paracel.com)
List pgsql-hackers
>
> Hi,
>
> perhaps a stupid question:
>
> What will happen, if you start PostgreSQL with -F and write a script
> which is a loop that fsyncs every 2 seconds? Does this lead to a
> database which is "almost" correct? Does this seem like a good
> compromise?

Well, you really have to sync the data pages BEFORE sync'ing pg_log.
Our buffered logging idea for post-6.3 will do exactly that.  I don't
think it is a workaround.  You could get pg_log to disk saying a
transaction is complete without getting all the data pages to disk if
the crash happened during the sync.

--
Bruce Momjian
maillist@candle.pha.pa.us

pgsql-hackers by date:

Previous
From: "Boersenspielteam"
Date:
Subject: Re: [HACKERS] Problem with the numbers I reported yesterday
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] PostGreSQL v6.2.1 for Linux Alpha