Re: What is the role of #fsync and #synchronous_commit in configuration file .

From: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
To: keshav upadhyaya <ukeshav2009(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: What is the role of #fsync and #synchronous_commit in configuration file .
Date: 2009-10-06 15:38:25
Message-ID: 4ec1cf760910060838h574c3fc8mf3123b91ee09e4b5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice pgsql-performance

On Tue, Oct 6, 2009 at 3:28 AM, keshav upadhyaya <ukeshav2009(at)gmail(dot)com> wrote:

> First question - i want to know the role played by
>
>  #fsync   = on    and
>  #synchronous_commit = on

These configurations are discussed here:
http://developer.postgresql.org/pgdocs/postgres/runtime-config-wal.html

> I want to understand more in details what exactly had happened  one is made
> them "off" , is it dangerous to do this ?  as it will not sync the data in
> each commit .
>

There's plenty of discussion in the documentation and the list
archives about the
risks of disabling fsync and/or synchronous commit. Here's one:
http://archives.postgresql.org/pgsql-performance/2006-04/msg00631.php

If you're struggling with performance issues, I'd post a detailed
description of
your problem and what you've tried so far to the -performance list, instead of
turning fsync off.

Josh

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Luiz Eduardo Cantanhede Neri 2009-10-07 00:29:01 Re: psql in bash - how to clear screen?
Previous Message Dave Dutcher 2009-10-06 12:49:37 Re: What is the role of #fsync and #synchronous_commit in configuration file .

Browse pgsql-performance by date

  From Date Subject
Next Message Craig James 2009-10-06 15:57:51 Re: updating a row in a table with only one row
Previous Message Merlin Moncure 2009-10-06 15:25:14 Re: updating a row in a table with only one row