From: Pavel Stehule <pavel.stehule@gmail.com>
To: Peter Childs <peterachilds@gmail.com>
Cc: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: Commit takes a long time.
Date: Thu, 3 Jan 2008 17:20:01 +0100
Message-ID: <162867790801030820w6a150ab8jf63d03e92de449ed@mail.gmail.com> (raw)
In-Reply-To: <a2de01dd0801030635v3491f576oabd4b3bb58d8328b@mail.gmail.com>
References: <a2de01dd0801030635v3491f576oabd4b3bb58d8328b@mail.gmail.com>
Hello
On 03/01/2008, Peter Childs <peterachilds@gmail.com> wrote:
> Using Postgresql 8.1.10 every so often I get a transaction that takes a
> while to commit.
>
> I log everything that takes over 500ms and quite reguallly it says things
> like
>
> 707.036 ms statement: COMMIT
>
> Is there anyway to speed this up?
>
there can be two issues:
a) some trigger activity for DEFERRED constraints
b) slow write to WAL
http://www.westnet.com/~gsmith/content/postgresql/
in normal cases COMMIT is really fast operation.
Regards
Pavel Stehule
> Peter Childs
>
>
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: pavel.stehule@gmail.com, peterachilds@gmail.com
Subject: Re: Commit takes a long time.
In-Reply-To: <162867790801030820w6a150ab8jf63d03e92de449ed@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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