Re: [HACKERS] Problem with the numbers I reported yesterday

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Problem with the numbers I reported yesterday
Дата
Msg-id 199802121447.JAA24934@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Problem with the numbers I reported yesterday  ("Boersenspielteam" <boersenspiel@vocalweb.de>)
Ответы Re: [HACKERS] Problem with the numbers I reported yesterday
Список 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 по дате отправления:

Предыдущее
От: "Boersenspielteam"
Дата:
Сообщение: Re: [HACKERS] Problem with the numbers I reported yesterday
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] PostGreSQL v6.2.1 for Linux Alpha