pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: stuart.bishop <stuart.bishop@canonical.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Cc: koichi.szk@gmail.com
Subject: Re: BUG #6528: pglesslog still referenced in docs, but no 9.1 support
Date: Mon, 9 Apr 2012 14:51:49 -0400
Message-ID: <20120409185149.GD3379@momjian.us> (raw)
In-Reply-To: <1333996309-sup-1157@alvh.no-ip.org>
References: <E1S7Nac-0007gI-5X@wrigleys.postgresql.org>
	<CA+TgmoZ6+EzE9KDERDLmU2h-SQ0mSkmGd3nF=rnx-JLahmCDUg@mail.gmail.com>
	<20120409181310.GA3379@momjian.us>
	<1333996309-sup-1157@alvh.no-ip.org>

 On Mon, Apr 09, 2012 at 03:37:09PM -0300, Alvaro Herrera wrote:
> 
> Excerpts from Bruce Momjian's message of lun abr 09 15:13:10 -0300 2012:
> > On Mon, Apr 09, 2012 at 10:10:34AM -0400, Robert Haas wrote:
> 
> > > This complaint appears to be accurate.  I think we should go ahead and
> > > remove that mention.
> > 
> > Agreed;  removed with the attached patch.  I didn't bother keeping the
> > gzip mention because I assume there is little value to using without
> > pglesslog.
> 
> I'm not sure that assumption holds.  I think you're thinking of the hack
> that zeroes out the "empty" holes in the middle of data pages; those
> didn't compress well unless zeroed out before compression.  This tool is
> not about that, but rather about removing redundant info from WAL files.
> It seems to me that WAL files would be as gzip-compressible regardless
> of pglesslog being applied.  (Another related tool is clearxlogtail

OK, docs updated with the attached patch.

> which zeroes areas from WAL files when they are empty because of an
> early switch due to archive timeout).

Should we document that?

> The funny thing is, apparently pg_lesslog was intentionally broken by
> changing XLR_BKP_REMOVABLE to XLP_BKP_REMOVABLE (different semantics?)
> and the fixes to make it compile again look simple.  It's a bit strange
> that NTT stopped maintaining the tool .. Maybe it wasn't useful anymore?

No idea.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

Attachments:

gunzip (text/plain, 849B) download diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml new file mode 100644 index bd7e42d..0180df5 *** a/doc/src/sgml/backup.sgml --- b/doc/src/sgml/backup.sgml *************** tar -rf /var/lib/pgsql/backup.tar /var/l *** 1246,1251 **** --- 1246,1262 ---- Please remember to add error handling to your backup scripts. </para> + <para> + If archive storage size is a concern, you can use + <application>gzip</application> to compress the archive files: + <programlisting> + archive_command = 'gzip &lt; %p &gt; /var/lib/pgsql/archive/%f' + </programlisting> + You will then need to use <application>gunzip</> during recovery: + <programlisting> + restore_command = 'gunzip &lt; /mnt/server/archivedir/%f &gt; %p' + </programlisting> + </para> </sect3> <sect3 id="backup-scripts">

view thread (21+ messages)  latest in thread

Message-ID: <20120409185149.GD3379@momjian.us>
Permalink:  ../20120409185149.GD3379@momjian.us/
Also on:    postgresql.org/message-id/20120409185149.GD3379@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, alvherre@commandprompt.com, robertmhaas@gmail.com, stuart.bishop@canonical.com, koichi.szk@gmail.com
  Subject: Re: BUG #6528: pglesslog still referenced in docs, but no 9.1 support
  In-Reply-To: <20120409185149.GD3379@momjian.us>
  References: <E1S7Nac-0007gI-5X@wrigleys.postgresql.org> <CA+TgmoZ6+EzE9KDERDLmU2h-SQ0mSkmGd3nF=rnx-JLahmCDUg@mail.gmail.com> <20120409181310.GA3379@momjian.us> <1333996309-sup-1157@alvh.no-ip.org> <20120409185149.GD3379@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox