pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Asynchronous commit documentation gap
3+ messages / 3 participants
[nested] [flat]

* Asynchronous commit documentation gap
@ 2007-11-02 10:13 Florian Weimer <fweimer@bfk.de>
  2007-11-04 09:05 ` Re: Asynchronous commit documentation gap Simon Riggs <simon@2ndquadrant.com>
  2007-11-05 17:35 ` Re: [HACKERS] Asynchronous commit documentation gap Bruce Momjian <bruce@momjian.us>
  0 siblings, 2 replies; 3+ messages in thread

From: Florian Weimer @ 2007-11-02 10:13 UTC (permalink / raw)
  To: pgsql-hackers@postgresql.org

The documentation doesn't really tell how to disable synchronous
commits for a single commit.  I believe the correct command is

  SET LOCAL synchronous_commit TO OFF;

just before the COMMIT statement.

-- 
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Asynchronous commit documentation gap
  2007-11-02 10:13 Asynchronous commit documentation gap Florian Weimer <fweimer@bfk.de>
@ 2007-11-04 09:05 ` Simon Riggs <simon@2ndquadrant.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Simon Riggs @ 2007-11-04 09:05 UTC (permalink / raw)
  To: Florian Weimer <fweimer@bfk.de>; +Cc: pgsql-hackers@postgresql.org

On Fri, 2007-11-02 at 11:13 +0100, Florian Weimer wrote:
> The documentation doesn't really tell how to disable synchronous
> commits for a single commit.  I believe the correct command is
> 
>   SET LOCAL synchronous_commit TO OFF;
> 
> just before the COMMIT statement.

Yes, in fact anywhere within the transaction will do.

-- 
  Simon Riggs
  2ndQuadrant  http://www.2ndQuadrant.com




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [HACKERS] Asynchronous commit documentation gap
  2007-11-02 10:13 Asynchronous commit documentation gap Florian Weimer <fweimer@bfk.de>
@ 2007-11-05 17:35 ` Bruce Momjian <bruce@momjian.us>
  1 sibling, 0 replies; 3+ messages in thread

From: Bruce Momjian @ 2007-11-05 17:35 UTC (permalink / raw)
  To: Florian Weimer <fweimer@bfk.de>; +Cc: pgsql-docs

Florian Weimer wrote:
> The documentation doesn't really tell how to disable synchronous
> commits for a single commit.  I believe the correct command is
> 
>   SET LOCAL synchronous_commit TO OFF;
> 
> just before the COMMIT statement.

Nice.  I made the following documentation change, attached.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://postgres.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

Attachments:

/rtmp/diff (text/x-diff, 1.1K) download Index: doc/src/sgml/config.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/config.sgml,v retrieving revision 1.152 diff -c -c -r1.152 config.sgml *** doc/src/sgml/config.sgml 1 Nov 2007 17:06:30 -0000 1.152 --- doc/src/sgml/config.sgml 5 Nov 2007 17:34:36 -0000 *************** *** 1318,1324 **** In many situations, turning off <xref linkend="guc-synchronous-commit"> for noncritical transactions can provide much of the potential performance benefit of turning off <varname>fsync</varname>, without ! the attendant risks of data corruption. </para> <para> --- 1318,1326 ---- In many situations, turning off <xref linkend="guc-synchronous-commit"> for noncritical transactions can provide much of the potential performance benefit of turning off <varname>fsync</varname>, without ! the attendant risks of data corruption. It can even be turned ! off in a single multi-statement transaction using <command>SET ! LOCAL synchronous_commit TO OFF;</>. </para> <para>
^ permalink raw reply [nested|flat] 3+ messages in thread


end of thread, other threads:[~2007-11-05 17:35 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-11-02 10:13 Asynchronous commit documentation gap Florian Weimer <fweimer@bfk.de>
2007-11-04 09:05 ` Simon Riggs <simon@2ndquadrant.com>
2007-11-05 17:35 ` Bruce Momjian <bruce@momjian.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox