Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 00ACC6339B7 for ; Tue, 3 Mar 2009 20:51:33 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 06365-08 for ; Tue, 3 Mar 2009 20:51:28 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from regoc.srce.hr (regoc.srce.hr [161.53.2.69]) by mail.postgresql.org (Postfix) with ESMTP id 195B06337A8 for ; Tue, 3 Mar 2009 20:51:27 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by regoc.srce.hr (Postfix) with ESMTP id 3CA3C10729B for ; Wed, 4 Mar 2009 01:51:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at smtp.srce.hr Received: from regoc.srce.hr ([127.0.0.1]) by localhost (regoc.srce.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ebw99RwiIG6b for ; Wed, 4 Mar 2009 01:51:24 +0100 (CET) Received: from [192.168.1.11] (78-1-135-90.adsl.net.t-com.hr [78.1.135.90]) by regoc.srce.hr (Postfix) with ESMTPSA id 7851110729A for ; Wed, 4 Mar 2009 01:51:24 +0100 (CET) Message-ID: <49ADD08C.3000604@srce.hr> Date: Wed, 04 Mar 2009 01:51:24 +0100 From: Jakov Sosic Organization: www.srce.hr User-Agent: Thunderbird 2.0.0.19 (X11/20090111) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Backing up postgresql database References: <20090303204005.3607451e@pc-jsosic.srce.hr> <49AD3C83.EE98.0025.0@wicourts.gov> <49ADC204.3050200@srce.hr> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/36 X-Sequence-Number: 31536 Scott Marlowe wrote: > That might not be much smaller if you're doing a lot of updates / > inserts / deletes. Also, SQL ain't the same as what was committed. If > you insert now() it won't be the same when you run it in two days. Well I think I miscalculated a little bit... It's more like a 120 GB per day, not 5TB... I'll post correct results tommorow. > The key here is it seems like you have a very high churn rate, and if > you're backup solution involves saving all those changes and applying > them later, it's gonna incur a rather large storage use. > > I.e. PITR, as you have it implemented, might not be your best solution. > You might be better off with something like Slony, Burcado (sp?) or > another of other live replication setups that don't have the same > issues you're seeing here. Replication involves another machine, and more load on current one, and that's not what I want. > It's probably better to keep pg_dump type backups for those types of > things. pitr is a poor challenger to the easily compressed output of > pg_dump for offsite backups. Especially over a wire. But how long would pg_dump execute on DB with this volume of traffic? And would it kill the machine in that period? I can try that as well tommorow... > If I update a single row in a database 1,000,000,000 times, how man > WAL files will you need? > If you update every row in a 1,000,000,000 row database, how many WAL > files will you need? Obviously application is not just appending new data, as I thought before... Because appends (aka INSERT) wouldn't cause this volume of WAL's or would it? > I'm wondering what you're objectives are in your backup strategy, it > might be you're coming at it one way when we'd all approach it from > another way. Or not. You are correct on this one. DB I'm talking about is not that important to have rigorous backup schedule and recovery policies. I rather have hardware limitations and I have to find the best solution to not overutilize the hardware and in the same time have as frequent backups as possible. -- | Jakov Sosic | ICQ: 28410271 | PGP: 0x965CAE2D | ================================================================= | start fighting cancer -> http://www.worldcommunitygrid.org/ |