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

From: keshav upadhyaya <ukeshav2009(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: What is the role of #fsync and #synchronous_commit in configuration file .
Date: 2009-10-06 07:28:01
Message-ID: d40c44910910060028k4d65f435h60a39e862a4e26ea@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice pgsql-performance

Hi ,
I want to imporve the performance for inserting of huge data in my table .
I have only one idex in table .

First question - i want to know the role played by

#fsync = on and
#synchronous_commit = on

They are commented by default in 8.4 .
When made like this :-
fsync = off
synchronous_commit = off

It improve the performance :)
and query took less time .

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 .

Pls help me out .

--
Thanks,
Keshav Upadhyaya

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Dave Dutcher 2009-10-06 12:49:37 Re: What is the role of #fsync and #synchronous_commit in configuration file .
Previous Message Tom Lane 2009-10-06 03:25:26 Re: psql in bash - how to clear screen?

Browse pgsql-performance by date

  From Date Subject
Next Message Axel Rau 2009-10-06 10:26:53 Re: Best suiting OS
Previous Message Viji V Nair 2009-10-06 06:51:06 Re: Distributed/Parallel Computing