X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 174D29DC83E for ; Fri, 23 Dec 2005 12:22:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 98302-01 for ; Fri, 23 Dec 2005 12:22:15 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.nildram.co.uk (smtp.nildram.co.uk [195.112.4.54]) by postgresql.org (Postfix) with ESMTP id 4ED269DC818 for ; Fri, 23 Dec 2005 12:22:14 -0400 (AST) Received: from [192.168.0.4] (195-112-43-70.dyn.gotadsl.co.uk [195.112.43.70]) by smtp.nildram.co.uk (Postfix) with ESMTP id C056A26B881; Fri, 23 Dec 2005 16:22:05 +0000 (GMT) Subject: Re: WAL and pg_dump From: Simon Riggs To: Stephen Frost Cc: Tom Lane , Mike C , pgsql-admin@postgresql.org In-Reply-To: <20051223134347.GE6026@ns.snowman.net> References: <1135208028.2964.329.camel@localhost.localdomain> <1135289852.2964.542.camel@localhost.localdomain> <20051223015001.GD6026@ns.snowman.net> <15885.1135312837@sss.pgh.pa.us> <20051223134347.GE6026@ns.snowman.net> Content-Type: text/plain Date: Fri, 23 Dec 2005 16:22:08 +0000 Message-Id: <1135354928.2964.617.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.096 required=5 tests=[AWL=0.096] X-Spam-Score: 0.096 X-Spam-Level: X-Archive-Number: 200512/301 X-Sequence-Number: 20021 On Fri, 2005-12-23 at 08:43 -0500, Stephen Frost wrote: > * Tom Lane (tgl@sss.pgh.pa.us) wrote: > > Stephen Frost writes: > > > As I recall, the initial backup of our 360GB (or so) database took > > > about 6 hours and the restore only took about 2 hours. > > > > Really? I'd certainly have guessed the opposite (mainly because of > > index build time, constraint checking, etc during reload). Could it > > be that compression of the pg_dump output is swamping all else during > > the backup phase? > > Sorry, I thought I was being clear (guess not)- I wasn't talking about > using pg_dump but rather PITR and tar/untar. I was trying to point out > that using PITR and tar/untar can be much, much, much nicer when you > have lots and lots of data to deal with (like a data warehouse would > have...). Yes, I don't think many people realise the performance you can get by doing hot physical backup/restores. I personally do not advocate any particular system architecture without knowing the specific case. My work has been to provide the system designer with more options should circumstances allow. Many systems don't ever look sufficiently like just one of the classic design patterns for us to use those designs directly, but we still need those patterns to allow discussion. > Of course, I can also do snapshots with the SAN, but that's a > one-time thing unlike PITR where you can choose any point in time to > recover to. Why not use SAN Snapshots *and* PITR? They play nicely. Best Regards, Simon Riggs