Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 535F42E010A; Thu, 31 Jan 2008 11:58:01 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 25109-09; Thu, 31 Jan 2008 11:57:54 -0400 (AST) Received: from outmail128166.authsmtp.net (outmail128166.authsmtp.net [62.13.128.166]) by postgresql.org (Postfix) with ESMTP id D7C6E2E011E; Thu, 31 Jan 2008 11:57:53 -0400 (AST) Received: from outmail128185.authsmtp.co.uk (outmail128185.authsmtp.co.uk [62.13.128.185]) by punt2.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id m0VFvj2K027568; Thu, 31 Jan 2008 15:57:46 GMT Received: from [192.168.0.3] (85-211-31-42.dyn.gotadsl.co.uk [85.211.31.42]) (authenticated bits=0) by mail.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id m0VFviIL058929; Thu, 31 Jan 2008 15:57:44 GMT Subject: Re: [GENERAL] Backup From: Simon Riggs To: Chander Ganesan Cc: Magnus Hagander , Phillip Smith , "'Dominic Carlucci'" , pgsql-general@postgresql.org, pgsql-admin@postgresql.org, carlucci@cae.ca In-Reply-To: <47A1E2F6.7060108@otg-nc.com> References: <00a201c85ee9$fbd1ca00$9b0014ac@wbaus090> <1201252875.4257.387.camel@ebony.site> <47A1BD51.3030902@otg-nc.com> <1201786128.4453.287.camel@ebony.site> <20080131143405.GC21660@svana.org> <20080131144314.GH11977@svr2.hagander.net> <47A1E2F6.7060108@otg-nc.com> Content-Type: text/plain Date: Thu, 31 Jan 2008 15:58:32 +0000 Message-Id: <1201795112.4453.301.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-Server-Quench: 431dd2d5-d015-11dc-9554-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksacRtFawRbZ1hf HGQLW1xEUVh7XGR/ bw8fZQBDYEtPQQZr TkxLXVBXCwUmXBxn cFhHK2Vycg1Penc+ Z0VrXT5fX0UuIUQp R1MAFWwDeGZhPDMC WUVdcx5UcAJLdhoR aVd4ByJDAzANdhEX MikeBRkVCH1sAQhw Yyc4ZXgbSkUWBlZp X-Authentic-SMTP: 61633235383639.squirrel.dmpriest.net.uk:787/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/298 X-Sequence-Number: 28072 On Thu, 2008-01-31 at 10:02 -0500, Chander Ganesan wrote: > Magnus Hagander wrote: > > On Thu, Jan 31, 2008 at 03:34:05PM +0100, Martijn van Oosterhout wrote: > > > >> On Thu, Jan 31, 2008 at 01:28:48PM +0000, Simon Riggs wrote: > >> > >>> That sentence has no place in any discussion about "backup" because the > >>> risk is not just a few transactions, it is a corrupt and inconsistent > >>> database from which both old and new data would be inaccessible. > >>> > >> Hmm? I thought the whole point of a filesystem snapshot was that it's > >> the same as if the system crashed. And I was fairly sure we could > >> recover from that... > >> > > > > That was my assumption as well. *Assuming* that the filesystem snapshot is > > consistent. There are a bunch of solutions that don't do consistent > > snapshots between different partitions, so if your WAL or one tablespace is > > on a different partition, you'll get corruption anyway... (seen this in > > Big Commercial Database, so that's not a pg problem) > > > Agreed. That's why I made it a point to mention that all of your > tablespaces should be on the same file system... In hindsight, I should > have also stated that your WAL logs should be on the same file system as > well... I think we all understand and agree, I just start twitching when anyone talks about it being OK to lose transactions when backing up. You meant the ones currently in progress, not the ones already committed and on disk. -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com