Disable page writes when fsync off, add GUC

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Disable page writes when fsync off, add GUC
Date: 2005-07-04 04:09:35
Message-ID: 200507040409.j6449ZX15512@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

This patch disables page writes to WAL when fsync is off, because with
no fsync guarantee, the page write recovery isn't useful.

This also adds a full_page_writes GUC to turn off page writes to WAL.
Some people might not want full_page_writes, but still might want fsync.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 5.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-07-04 04:12:13 Re: [HACKERS] HEAD doesn't cope with libraries in non-default locations
Previous Message Bruce Momjian 2005-07-04 04:01:56 Re: [HACKERS] HEAD doesn't cope with libraries in non-default locations

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2005-07-04 04:12:13 Re: [HACKERS] HEAD doesn't cope with libraries in non-default locations
Previous Message Bruce Momjian 2005-07-04 04:01:56 Re: [HACKERS] HEAD doesn't cope with libraries in non-default locations