Re: Decreasing WAL size effects

From: Greg Smith <gsmith(at)gregsmith(dot)com>
To: Jason Long <mailing(dot)list(at)supernovasoftware(dot)com>
Cc: pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Decreasing WAL size effects
Date: 2008-10-29 13:05:21
Message-ID: Pine.GSO.4.64.0810290900360.19233@westnet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Tue, 28 Oct 2008, Jason Long wrote:

> I also have to ship them off site using a T1 so setting the time to
> automatically switch files will just waste bandwidth if they are still going
> to be 16 MB anyway.

The best way to handle this is to clear the unused portion of the WAL file
and then compress it before sending over the link. There is a utility
named pg_clearxlogtail available at
http://www.2ndquadrant.com/replication.htm that handles the first part of
that you may find useful here.

This reminds me yet again that pg_clearxlogtail should probably get added
to the next commitfest for inclusion into 8.4; it's really essential for a
WAN-based PITR setup and it would be nice to include it with the
distribution.

--
* Greg Smith gsmith(at)gregsmith(dot)com http://www.gregsmith.com Baltimore, MD

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brent Austin 2008-10-29 14:11:32 Re: [Help] Config Failure on Mac OSX: psqlodbc-08.03.0300
Previous Message Glyn Astill 2008-10-29 13:05:12 Re: Autovacuum and relfrozenxid

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2008-10-29 13:07:34 Re: WIP patch: convert SQL-language functions to return tuplestores
Previous Message Pavel Stehule 2008-10-29 12:52:41 Re: some problem with casting unknown to smallint