From: | Pavan Deolasee <pavan(dot)deolasee(at)gmail(dot)com> |
---|---|
To: | Tian Luo <jackrobin(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: "full_page_writes" makes no difference? |
Date: | 2011-05-04 12:16:00 |
Message-ID: | BANLkTi=i4G3F90+jSCum38mdCywTrhp51A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, May 4, 2011 at 7:16 AM, Tian Luo <jackrobin(at)gmail(dot)com> wrote:
> Hi guys,
>
> No matter I turn on or turn off the "full_page_writes", I always
> observe 8192-byte writes of log data for simple write operations
> (write/update).
>
>
Not sure how you measured it, but ISTM that the correct GUC to play with is
"fsync". If thats turned off, the WAL buffers won't be fsynced to the disk
at every commit. But that would mean reduced reliability in case of database
crash.
> But according to the document, when this is off, it could speed up
> operations but may cause problems during recovery. So, I guess this is
> because it writes less when the option is turned off. However, this
> contradicts my observations ....
>
>
When full_page_writes is turned off, the full page won't be backed up in the
WAL record after the first modification after a checkpoint. So yes, it can
reduce the amount of WAL written to the disk.
Thanks,
Pavan
--
Pavan Deolasee
EnterpriseDB http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Pavan Deolasee | 2011-05-04 12:27:27 | Re: "full_page_writes" makes no difference? |
Previous Message | Markus Wanner | 2011-05-04 12:02:52 | Re: "full_page_writes" makes no difference? |