Re: Curiosity: what is PostgreSQL doing with data when "nothing" is happening?

From: "Kevin Grittner" <kgrittn(at)mail(dot)com>
To: "Gavan Schneider" <pg-gts(at)snkmail(dot)com>,pgsql-novice(at)postgresql(dot)org
Subject: Re: Curiosity: what is PostgreSQL doing with data when "nothing" is happening?
Date: 2012-11-25 17:27:38
Message-ID: 20121125172739.297040@gmx.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Gavan Schneider wrote:

> Therefore I wonder if I should just go down to 4MB, no
> archive_timeout, and accept the (max) 4MB of updated pages as my
> (worst case) loss if everything should go wrong at once? And,
> maybe do the segment downsize when a new version needs
> installing :)

You might want to consider grabbing the source for pg_clearxlogtail
from pgfoundry and piping through that followed by gzip in your
archive script. An "empty" WAL file tends to be about 16KB that
way, rather than (for us) ranging between 4MB and 8MB. That way you
can keep the archive_timeout fairly short.

-Kevin

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2012-11-25 19:36:43 Re: Curiosity: what is PostgreSQL doing with data when "nothing" is happening?
Previous Message Gavan Schneider 2012-11-25 12:54:45 Re: Curiosity: what is PostgreSQL doing with data when "nothing" is happening?