From: | Jeff Davis <pgsql(at)j-davis(dot)com> |
---|---|
To: | Brian Wipf <brian(at)clickspace(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: WAL archiving idle database |
Date: | 2007-10-26 21:39:57 |
Message-ID: | 1193434797.7624.101.camel@dogma.ljc.laika.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On Fri, 2007-10-26 at 15:08 -0600, Brian Wipf wrote:
> I have a test PG 8.2.5 installation that has been left idle with no
> connections to it whatsoever for the last 24 hours plus. WALs are
> being archived exactly 5 minutes apart, even though archive_timeout
> is set to 60. Is this the expected behavior for a database with no
> changes?
>
If it's set to just "60" that means 60 seconds.
What's happening is that you have a checkpoint_timeout of 5 minutes, and
that checkpoint must write a checkpoint record in the WAL, prompting the
archiving.
If you want it to happen less frequently, it's often safe to have
checkpoint timeout set to something larger by a reasonable amount.
Anyone using a checkpoint_timeout is going to end up with quite a few
mostly-empty 16MB files to deal with. Someone wrote a utility to zero
out the empty space in WAL segments, you might look at
"pg_clearxlogtail" written by Kevin Grittner (search the archives or
pgfoundry). This allows you to gzip the files to basically nothing.
Regards,
Jeff Davis
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Davis | 2007-10-26 21:46:59 | Re: WAL archiving idle database |
Previous Message | Erik Jones | 2007-10-26 21:31:51 | Re: WAL archiving idle database |
From | Date | Subject | |
---|---|---|---|
Next Message | Jignesh K. Shah | 2007-10-26 21:45:19 | Re: [HACKERS] 8.3beta1 testing on Solaris |
Previous Message | Erik Jones | 2007-10-26 21:31:51 | Re: WAL archiving idle database |