Re: Does fsync on/off for wal AND Checkpoint?

From: Andreas Karlsson <andreas(at)proxel(dot)se>
To: GR Vishwanath <grv144(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Does fsync on/off for wal AND Checkpoint?
Date: 2013-12-27 16:27:14
Message-ID: 52BDAA62.9000600@proxel.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 12/27/2013 04:55 PM, GR Vishwanath wrote:
> Is fscnc off/on pertain only to writing WAL buffers to disk?
>
> Or is that also relevant to writing of dirty buffers to disk
> (checkpoint/bg)?
>
> Curious because in the docs fsync on/off is mentioned under WAL
> configuration. Further there is a wal_sync_method but not a
> "checkpoint_sync_method".

The setting is for all uses of fsync within the PostgreSQL server, so if
you turn it off PostgreSQL should never issue fsync. The only exceptions
are some utility tools (eg. pg_basebackup) which do not read the
configuration file.

--
Andreas Karlsson

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Mark Kirkwood 2013-12-28 02:31:11 Re: query not using index
Previous Message GR Vishwanath 2013-12-27 15:55:44 Does fsync on/off for wal AND Checkpoint?