Re: archived WALL files question - Mailing list pgsql-admin

From Kevin Grittner
Subject Re: archived WALL files question
Date
Msg-id 4BCC415D0200002500030A6B@gw.wicourts.gov
Whole thread Raw
In response to Re: archived WALL files question  (Frederiko Costa <frederiko@gmail.com>)
Responses Re: archived WALL files question  (Frederiko Costa <frederiko@gmail.com>)
List pgsql-admin
Frederiko Costa <frederiko@gmail.com> wrote:

> I noticed the new logs files don't get copied to the directory
> specified on the archive_command. It's only copied when I do the
> pg_start_backup()/pg_stop_backup() base backup. Is this behaviour
> only achieved if I set archive_timeout? I did not want to do that,
> because I thought as soon as the 16MB WAL segment file got created
> it would be copied to the exported directory.

Have you actually been filling up any 16MB WAL file segments?  How
have you determined that?  What happens when you run (as a database
superuser) this command?:

SELECT pg_switch_xlog();

If the reason you don't want to set archive_timeout is that you
don't want 16MB files piling up when there is little or no activity,
you might want to consider using pglesslog or pg_clearxlogtail.
These can eliminate nearly all the cost of the more frequent logs.

-Kevin

pgsql-admin by date:

Previous
From: Sergey Konoplev
Date:
Subject: Re: How to disconnect a single user in Postgresql 8.2.5 from a database
Next
From: Frederiko Costa
Date:
Subject: Re: archived WALL files question