Re: wal sync method

From: PFC <lists(at)peufeu(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: wal sync method
Date: 2006-03-01 11:58:21
Message-ID: op.s5qgvjilcigqcu@apollo13
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

Hm, i seem to have mixed fwrite() (which buffers data in userspace) and
write() (which apparently doesnt !)
Sorry !

> PFC <lists(at)peufeu(dot)com> writes:
>> Just a stupid question about the various fsync settings.
>> There is fsync=off, but is there fsync=fflush ?
>> fflush would mean only an OS crash could cause data loss,
>> I think.it could be useful for some applications where you need a speed
>> boost (like testing database import scripts...) without being as scary
>> as
>> fsync=off...
>
> I think you misunderstand. There aren't any scenarios where a PG crash
> (without hardware/OS crash) risks data, because we always at least
> write() data before commit. The only issue is how hard do we try to get
> the OS+hardware to push that data down to disk.
>
> regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Roman Neuhauser 2006-03-01 12:04:11 Re: ipcclean in 8.1 broken?
Previous Message sandhya 2006-03-01 11:56:38 Fw: pls help me

Browse pgsql-performance by date

  From Date Subject
Next Message PFC 2006-03-01 14:56:25 Bad plan on a view
Previous Message Bruno Wolff III 2006-03-01 06:55:56 Re: Large Table With Only a Few Rows