Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id C17536326CE for ; Fri, 12 Mar 2010 20:53:58 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 67879-04 for ; Sat, 13 Mar 2010 00:53:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gy0-f174.google.com (mail-gy0-f174.google.com [209.85.160.174]) by mail.postgresql.org (Postfix) with ESMTP id D518063225D for ; Fri, 12 Mar 2010 20:53:47 -0400 (AST) Received: by gyg8 with SMTP id 8so628012gyg.19 for ; Fri, 12 Mar 2010 16:53:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=AVin+ZZGW1cEHk/WOLpYBkCOxaf9nTcK6dHnFQFdvmY=; b=IRmr9hLIyQpBzsYsDizD74CWhmtUZD9LyVuPNwe6KqpU2Q9R+lmW3istBOupfaGaXc hGgFD+p9gCtKgInoFWastGA3lPSXyZZFPKOKyawU/CDZbq0ysVpWMJz1MJKtPMndH0N0 EKCD4/BILkCi0KjzDDQt4aUpDgGk7bT6Pzoq8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=tvBuTtuBbfdrWJdwA8jEAAzDHO4DV6HESa5//6YJZN5JxNHwQ927clY12mgl9ehgBZ T1xcbpWTfbC/DBrQjw767X/d+4as7dGz8yNOYAbssRSyzX3RatrZj7zDePMZTtz07UiC xcHV2G5Ine7QFB7/Oke/f53Uy3IMfNTYQ3RN4= MIME-Version: 1.0 Reply-To: koichi.szk@gmail.com Received: by 10.91.162.34 with SMTP id p34mr1287557ago.67.1268441625908; Fri, 12 Mar 2010 16:53:45 -0800 (PST) In-Reply-To: <201003121711.o2CHBHf27975@momjian.us> References: <4B9A6E8B.4050303@magneta.com.cy> <201003121711.o2CHBHf27975@momjian.us> Date: Sat, 13 Mar 2010 09:53:45 +0900 X-Google-Sender-Auth: 27b6660620fd288d Message-ID: Subject: Re: Off-site storage for PITR logs From: Koichi Suzuki To: Bruce Momjian Cc: Nicos Panayides , pgsql-admin@postgresql.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/82 X-Sequence-Number: 33881 Sorry for that. The bug was incorrect calculation of XNOOP record size in GiST WAL when incremental log is created from the full backup. Because the bug impact is so serious, I'm rebuilding the test environment which is taking long. I'll report the cause of the bug to hackers and bugs. If GiST is not used, WAL compression works correctly but I'm not comfortable to use lesslog with known bug. ---------- Koichi Suzuki 2010/3/13 Bruce Momjian : > Nicos Panayides wrote: >> Hi, >> I am planning an off-site backup solution for a fairly busy >> (mostly-write) 8.3 database. The database is currently about 200GB in >> size. I though about using log shipping and cold standby since it's easy >> in terms of administration and also offers point in time recovery. >> >> The database generates about 3 PITR log files per minute. If my >> calculations are correct the sites need to be connected with a 7MBit >> connection and the logs will need about 68GB of storage per day! >> >> Does anyone have any suggestions on how to significantly reduce the >> volume of log files or recommend another off-site backup solution that >> would require less bandwidth and storage? > > I would use pg_lesslog to reduce the size of the WAL files: > > =C2=A0 =C2=A0 =C2=A0 =C2=A0http://pgfoundry.org/projects/pglesslog/ > > However, there is a bug in pg_lesslog so I wouldn't use it until that is > fixed: > > =C2=A0 =C2=A0 =C2=A0 =C2=A0http://archives.postgresql.org/pgsql-announce/= 2010-02/msg00005.php > > Koichi, do you have any update on this? =C2=A0I don't see that a new vers= ion > has been uploaded, and I also see no mention on the pgfoundry site about > the bug. > > -- > =C2=A0Bruce Momjian =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0h= ttp://momjian.us > =C2=A0EnterpriseDB =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://enterprisedb.com > > =C2=A0PG East: =C2=A0http://www.enterprisedb.com/community/nav-pg-east-20= 10.do >