Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1EF969FC351 for ; Fri, 22 Jun 2007 12:32:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 38303-02 for ; Fri, 22 Jun 2007 12:32:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from oxford.xeocode.com (unknown [62.232.55.118]) by postgresql.org (Postfix) with ESMTP id 352889FC34D for ; Fri, 22 Jun 2007 12:32:04 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.67) (envelope-from ) id 1I1l6s-0001PL-US; Fri, 22 Jun 2007 16:31:42 +0100 From: Gregory Stark To: "Joshua D. Drake" Cc: "Toru SHIMOGAKI" , "Steve Atkins" , "PostgreSQL Performance" Subject: Re: PITR Backups In-Reply-To: <467BD479.5090603@commandprompt.com> (Joshua D. Drake's message of "Fri, 22 Jun 2007 06:54:01 -0700") Organization: EnterpriseDB References: <7E0807EE-B970-4869-A248-B838E42AD9EE@hi5.com> <9761.1182472005@sss.pgh.pa.us> <467B3459.9030808@oss.ntt.co.jp> <467B7A89.3080300@oss.ntt.co.jp> <467BD479.5090603@commandprompt.com> X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX.performance" 1275) Date: Fri, 22 Jun 2007 16:31:42 +0100 Message-ID: <87645gngyp.fsf@oxford.xeocode.com> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/541 X-Sequence-Number: 25574 >> So, if any data is written during taking snapshot, we can't assurance data >> correctness *strictly* . That sounds nothing like what I've heard called a "snapshot" before. Some "filesystems" which aren't really filesystems but are also storage layer drivers like Veritas (and ZFS?) allow you to take a snapshot which they guarantee is atomic. You can do them while you have concurrent i/o and be sure to get a single consistent view of the filesystem. If you're just copying blocks from a device without any atomic snapshot guarantee then you're going to get garbage. Even in Postgres wasn't writing anything the OS might still choose to flush blocks during that time, possibly not even Postgres data blocks but filesystem meta-information blocks. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com