From: Tom Lane <tgl@sss.pgh.pa.us>
To: Shane Wright <me@shanewright.co.uk>
Cc: pgsql-admin@postgresql.org
Subject: Re: hanging for 30sec when checkpointing
Date: Fri, 06 Feb 2004 10:33:06 -0500
Message-ID: <29986.1076081586@sss.pgh.pa.us> (raw)
In-Reply-To: <56DEF96A-5888-11D8-85B9-000393A5890E@shanewright.co.uk>
References: <40202216.4010608@shanewright.co.uk>
<56DEF96A-5888-11D8-85B9-000393A5890E@shanewright.co.uk>
Shane Wright <me@shanewright.co.uk> writes:
> Hmm that gives me an idea, for bulk processing, is there a way of
> detecting from a client when a checkpoint is about to happen so it can
> wait until it's finished?
No, but maybe you could think about scheduling checkpoints yourself
to not coincide with your bulk jobs. You could issue CHECKPOINT
commands from cron or whatever is dispatching your bulk jobs, and then
widen the checkpoint-timing parameters in postgresql.conf enough to
avoid automatic CHECKPOINTs.
The only real drawback of less-frequent CHECKPOINTs is that the amount
of WAL space required goes up proportionally. (Oh, and it might take
proportionally longer to recover after a crash, too.)
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, me@shanewright.co.uk
Subject: Re: hanging for 30sec when checkpointing
In-Reply-To: <29986.1076081586@sss.pgh.pa.us>
References: <40202216.4010608@shanewright.co.uk> <56DEF96A-5888-11D8-85B9-000393A5890E@shanewright.co.uk> <29986.1076081586@sss.pgh.pa.us>
* 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