Re: WAL logs eating my diskspace!! - Mailing list pgsql-general

From Tom Lane
Subject Re: WAL logs eating my diskspace!!
Date
Msg-id 7776.989623805@sss.pgh.pa.us
Whole thread Raw
In response to WAL logs eating my diskspace!!  (webb sprague <wsprague@o1.com>)
List pgsql-general
webb sprague <wsprague@o1.com> writes:
> Is there a way to flush them more often?

Reduce the time interval between WAL checkpoints.  (But don't overdo it.)
Perhaps every three or so minutes, rather than five?

> Otherwise, they can fill up the
> disk space and crash the postmaster.  I am doing bulk copies, but the logs
> hang around for up to 20 minutes after the copy is finished.

Another possibility is to issue a manual CHECKPOINT command as soon as
you've finished a bulk copy.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Trigger only firing once
Next
From: Justin Clift
Date:
Subject: Tip for using Druid and PostgreSQL