Asynchronous commit documentation gap

Started by Florian Weimerover 18 years ago3 messageshackersdocs
Jump to latest
#1Florian Weimer
fweimer@bfk.de
hackersdocs

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

#2Simon Riggs
simon@2ndQuadrant.com
In reply to: Florian Weimer (#1)
hackersdocs
Re: Asynchronous commit documentation gap

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

#3Bruce Momjian
bruce@momjian.us
In reply to: Florian Weimer (#1)
hackersdocs
Re: [HACKERS] Asynchronous commit documentation gap

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/difftext/x-diffDownload+4-4