disk caching for writing log

From: flyusa2010 fly <flyusa2010(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: disk caching for writing log
Date: 2010-12-03 11:49:25
Message-ID: AANLkTik_wxokXpU=1U3_dXWtnBqMPm9pycWcNqZgfe+C@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

When writing log, dbms should synchronously flush log to disk. I'm
wondering, if it is possible that the logs are in disk cache, while the
control is returned to dbms again, so dbms thinks logs are persistent on
disk. In this case, if the disk fails, then there's incorrectness for dbms
log writing, because the log is not persistent, but dbms considers it is
persistent!

Am I correct?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexey Klyukin 2010-12-03 12:27:11 Re: Another proposal for table synonyms
Previous Message Robert Haas 2010-12-03 11:09:40 Re: unlogged tables