Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 44CCF6501BE for ; Fri, 17 Oct 2008 16:33:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 56742-03 for ; Fri, 17 Oct 2008 16:33:21 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail137138.authsmtp.net (outmail137138.authsmtp.net [62.13.137.138]) by postgresql.org (Postfix) with ESMTP id 5FDE86501B6 for ; Fri, 17 Oct 2008 16:33:21 -0300 (ADT) Received: from mail-c188.authsmtp.com (mail-c188.authsmtp.com [62.13.128.25]) by punt10.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m9HJXHw0079362; Fri, 17 Oct 2008 20:33:17 +0100 (BST) Received: from [192.168.0.3] (85-211-69-124.dyn.gotadsl.co.uk [85.211.69.124]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m9HJXGP9055171; Fri, 17 Oct 2008 20:33:16 +0100 (BST) Subject: Re: Backup strategies From: Simon Riggs To: Ivan Voras Cc: pgsql-performance@postgresql.org In-Reply-To: References: <48F4D693.9000304@lerner.co.il> <48F5BBFC.80404@krogh.cc> <48F5D6AE.3000601@lelarge.info> Content-Type: text/plain Date: Fri, 17 Oct 2008 20:35:41 +0100 Message-Id: <1224272141.3808.437.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: 72243dfe-9c82-11dd-aecc-001871e930f4 X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFaQJbYlpF HGQLW1xEUl17WmB/ agwfZQBDYEtPQQNj TklLRk1QEQdtHhxP WxdmKHEFFwxGfXtx YkcsX3NfVQp9d0R5 QRoCQHAPNm9idWEe BBRFJlYHIx5Kfh5N bVEqXXANN2FJBC9q VzwLEgofGg96HWx/ SwoOMEpaWloRFyIx SBEPBl1z X-Authentic-SMTP: 61633235383639.cat.dmpriest.net.uk:1378/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-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/98 X-Sequence-Number: 31679 On Wed, 2008-10-15 at 16:05 +0200, Ivan Voras wrote: > So, pg_start_backup() freezes the data at the time it's called but > still > data and xlog are changed, in a different way that's safe to backup? No, that's not how it works. The pg_start_backup() records the point that we must rollforward from. There is no freezing. > Why > not run with pg_start_backup() always enabled? It's not a mode that can be enabled/disabled. Its a starting point. You should run pg_start_backup() each time you run a backup, just like the fine manual describes. Check your backups... -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support