Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id E5CED9FB5FF for ; Thu, 21 Jun 2007 23:59:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 67355-05-2 for ; Thu, 21 Jun 2007 23:58:51 -0300 (ADT) X-Greylist: delayed 00:28:23.128429 by SQLgrey-1.7.5 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 311F99FB77E for ; Thu, 21 Jun 2007 23:58:57 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from serv1.oss.ntt.co.jp (serv1.oss.ntt.co.jp [222.151.198.98]) by svr4.postgresql.org (Postfix) with ESMTP id EADE85AFD28 for ; Fri, 22 Jun 2007 02:30:31 +0000 (GMT) Received: from [127.0.0.1] (unknown [172.17.1.114]) by serv1.oss.ntt.co.jp (Postfix) with ESMTP id 8BCB7104001; Fri, 22 Jun 2007 11:30:28 +0900 (JST) Message-ID: <467B3459.9030808@oss.ntt.co.jp> Date: Fri, 22 Jun 2007 11:30:49 +0900 From: Toru SHIMOGAKI User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Tom Lane , Dan Gorman Cc: pgsql-performance@postgresql.org Subject: Re: PITR Backups References: <7E0807EE-B970-4869-A248-B838E42AD9EE@hi5.com> <9761.1182472005@sss.pgh.pa.us> In-Reply-To: <9761.1182472005@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/505 X-Sequence-Number: 25538 Tom Lane wrote: > Dan Gorman writes: >> All of our databases are on NetApp storage and I have been looking >> at SnapMirror (PITR RO copy ) and FlexClone (near instant RW volume >> replica) for backing up our databases. The problem is because there >> is no write-suspend or even a 'hot backup mode' for postgres it's >> very plausible that the database has data in RAM that hasn't been >> written and will corrupt the data. > Alternatively, you can use a PITR base backup as suggested here: > http://www.postgresql.org/docs/8.2/static/continuous-archiving.html I think Dan's problem is important if we use PostgreSQL to a large size database: - When we take a PITR base backup with hardware level snapshot operation (not filesystem level) which a lot of storage vender provide, the backup data can be corrupted as Dan said. During recovery we can't even read it, especially if meta-data was corrupted. - If we don't use hardware level snapshot operation, it takes long time to take a large backup data, and a lot of full-page-written WAL files are made. So, I think users need a new feature not to write out heap pages during taking a backup. Any comments? Best regards, -- Toru SHIMOGAKI NTT Open Source Software Center