Re: WAL and backup recovery

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dario Brignardello <dbrignar(at)sinectis(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: WAL and backup recovery
Date: 2001-05-23 16:08:58
Message-ID: 14951.990634138@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Dario Brignardello <dbrignar(at)sinectis(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Stephan Szabo 2001-05-23 16:09:53 Re: simpler query still significantly slower
Previous Message Marc Sherman 2001-05-23 14:01:35 WARNING: owner of type appears to be invalid?