From: Peter Childs <peterachilds@gmail.com>
To: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Slow Inserts on large tables
Date: Fri, 3 Oct 2008 08:25:42 +0100
Message-ID: <a2de01dd0810030025x2b28fee4o9505bed1689a6060@mail.gmail.com> (raw)
I have a problem where by an insert on a "large" table will sometimes
take longer than usual.
Usually the inserts are quick then from time to time they will take a
long time sometimes as much as 10seconds or longer. (But usually under
500ms which is when I start logging them)
The queries are slow drip fed so bulk loading really is not an option,
Its logging data. Used in analysis and for historical purposes mostly.
I think the problem might have something to do with checkpoints, I'm
relatively sure its not when the table expands as I've run a vacuum
verbose straight away after a longer insert and not found loads of
space in the fsm.
I'm using 8.3.1 (I thought I'd upgraded to 8.3.3 but it does not look
like the upgrade worked) I'm more than happy to upgrade just have to
find the down time (even a few seconds can be difficult)
Any help would be appreciated.
Regards
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: peterachilds@gmail.com
Subject: Re: Slow Inserts on large tables
In-Reply-To: <a2de01dd0810030025x2b28fee4o9505bed1689a6060@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