From: Dario Brignardello <dbrignar@sinectis.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: WAL and backup recovery
Date: Wed, 23 May 2001 14:54:34 -0300
Message-ID: <3B0BF95A.B7E41D39@sinectis.com> (raw)
References: <3B0BAC6B.21A7ADE5@sinectis.com>
<14951.990634138@sss.pgh.pa.us>
Thanks for your help, its working now :-).
Yours:
Dario Brignardello
Tom Lane wrote:
> Dario Brignardello <dbrignar@sinectis.com> writes:
> > checkpoint_segments = 1
> > checkpoint_timeout = 30
>
> Reducing checkpoint_segments and checkpoint_timeout is actually
> seriously counterproductive, if your problem is amount of disk space
> chewed up by WAL logs during a long transaction (such as bulk load of
> a big table). The WAL log cannot be truncated until the xact commits,
> so the checkpoints that happen meanwhile just cause log bloat. Lots
> of it, because each checkpoint causes fresh copying of modified pages
> into the WAL log.
>
> Try increasing those numbers, not decreasing them. Maybe 10/600 or so?
>
> Also, if you are short on disk space for WAL, increasing wal_files isn't
> such a great idea either.
>
> regards, tom lane
Attachments:
smime.p7s (application/x-pkcs7-signature, 1.8K) download
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: dbrignar@sinectis.com
Subject: Re: WAL and backup recovery
In-Reply-To: <3B0BF95A.B7E41D39@sinectis.com>
References: <3B0BAC6B.21A7ADE5@sinectis.com> <14951.990634138@sss.pgh.pa.us> <3B0BF95A.B7E41D39@sinectis.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