Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7vL8-0004GW-Lk for pgsql-general@arkaria.postgresql.org; Fri, 09 Aug 2013 22:39:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V7vL7-0001s7-SL for pgsql-general@arkaria.postgresql.org; Fri, 09 Aug 2013 22:39:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7vL5-0001rw-IP for pgsql-general@postgresql.org; Fri, 09 Aug 2013 22:39:19 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7vKx-0004WI-FO for pgsql-general@postgresql.org; Fri, 09 Aug 2013 22:39:19 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1V7vKt-0006ad-QM; Fri, 09 Aug 2013 18:39:07 -0400 Date: Fri, 9 Aug 2013 18:39:07 -0400 From: Bruce Momjian To: Tom Lane Cc: Alban Hertroys , Jeff Janes , James Sewell , "pgsql-general@postgresql.org" Subject: Re: Snapshot backups Message-ID: <20130809223907.GA30558@momjian.us> References: <8810.1375247630@sss.pgh.pa.us> <2EB17B60-33A2-4855-A176-0E8DD16ED7E1@gmail.com> <10906.1375273486@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10906.1375273486@sss.pgh.pa.us> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On Wed, Jul 31, 2013 at 08:24:46AM -0400, Tom Lane wrote: > Alban Hertroys writes: > > That begs the question what happens in case of a crash or (worse) a partial crash when multiple file systems are involved. > > As long as the OS+hardware honors the contract of fsync(), everything's > fine. If the storage system loses data that it claims to have fsync'd to > stable storage, there's not much we can do about that, except recommend > that you have a backup plan. > > In practice, the more complicated your storage infrastructure is, the more > likely it is to have bugs ... Just to give the 10k mile answer, the WAL contains all database changes that _might_ be lost due to file system changes during a base backup. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general