Re: Configure Postgres From SQL - Mailing list pgsql-general

From Greg Smith
Subject Re: Configure Postgres From SQL
Date
Msg-id 4C3B66AC.2060405@2ndquadrant.com
Whole thread Raw
In response to Re: Configure Postgres From SQL  (Andres Freund <andres@anarazel.de>)
List pgsql-general
Andres Freund wrote:
> What you can change (and that makes quite a bit of sense in some situations)
> is the "synchronous_commit" setting.
>

Right.  In almost every case where people think they want to disable
fsync, what they really should be doing instead is turning off
synchronous commit--which is a user-land tunable per session:

SET synchronous_commit=false;

And potentially increasing wal_writer_delay on the server too:
http://www.postgresql.org/docs/current/static/wal-async-commit.html

--
Greg Smith  2ndQuadrant US  Baltimore, MD
PostgreSQL Training, Services and Support
greg@2ndQuadrant.com   www.2ndQuadrant.us


pgsql-general by date:

Previous
From: Greg Smith
Date:
Subject: Re: PG_DUMP very slow because of STDOUT ??
Next
From: Bruce Momjian
Date:
Subject: Re: PostgreSQL 9.0 beta 3 release announcement