From: Peter Childs <peterachilds@gmail.com>
Cc: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: Slow Inserts on large tables
Date: Fri, 3 Oct 2008 09:47:38 +0100
Message-ID: <a2de01dd0810030147m4b2d302aj49e1bb38146d0523@mail.gmail.com> (raw)
In-Reply-To: <48E5D62D.7060400@gmx.net>
References: <a2de01dd0810030025x2b28fee4o9505bed1689a6060@mail.gmail.com>
<48E5D62D.7060400@gmx.net>
2008/10/3 Peter Eisentraut <peter_e@gmx.net>:
> Peter Childs wrote:
>>
>> I have a problem where by an insert on a "large" table will sometimes
>> take longer than usual.
>
>> I think the problem might have something to do with checkpoints,
>
> Then show us your checkpointing-related parameters. Or try to set them to a
> lot higher values so checkpoints happen more rarely and see if that makes a
> difference.
>
>
More often or less often?
I've currently got them set to
checkpoint_segments = 3
checkpoint_timeout = 180s
checkpoint_completion_target = 0.5
after reading that doing more smaller checkpoints might make each
checkpoint work quicker and hence less of a performance hit when they
actually happen.
Regards
Peter
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: peterachilds@gmail.com
Subject: Re: Slow Inserts on large tables
In-Reply-To: <a2de01dd0810030147m4b2d302aj49e1bb38146d0523@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