Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 886E4153F352 for ; Mon, 9 Apr 2012 15:52:06 -0300 (ADT) Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SHJh4-0007E2-Su for pgsql-bugs@postgresql.org; Mon, 09 Apr 2012 18:52:05 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1SHJgr-0002oh-7d; Mon, 09 Apr 2012 14:51:49 -0400 Date: Mon, 9 Apr 2012 14:51:49 -0400 From: Bruce Momjian To: Alvaro Herrera Cc: Robert Haas , "stuart.bishop" , Pg Bugs , koichi.szk@gmail.com Subject: Re: BUG #6528: pglesslog still referenced in docs, but no 9.1 support Message-ID: <20120409185149.GD3379@momjian.us> References: <20120409181310.GA3379@momjian.us> <1333996309-sup-1157@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="DKU6Jbt7q3WqK7+M" Content-Disposition: inline In-Reply-To: <1333996309-sup-1157@alvh.no-ip.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/50 X-Sequence-Number: 32801 --DKU6Jbt7q3WqK7+M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + --DKU6Jbt7q3WqK7+M Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=gunzip 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. + + If archive storage size is a concern, you can use + gzip to compress the archive files: + + archive_command = 'gzip < %p > /var/lib/pgsql/archive/%f' + + You will then need to use gunzip during recovery: + + restore_command = 'gunzip < /mnt/server/archivedir/%f > %p' + + --DKU6Jbt7q3WqK7+M--