pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alban Hertroys <haramrae@gmail.com>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: James Sewell <james.sewell@lisasoft.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Snapshot backups
Date: Fri, 9 Aug 2013 18:39:07 -0400
Message-ID: <20130809223907.GA30558@momjian.us> (raw)
In-Reply-To: <10906.1375273486@sss.pgh.pa.us>
References: <CANkGpBt8agjCS+__CceCKBHBNTEfFsmg5jnFd8MianQh0c0MMA@mail.gmail.com>
	<CABUevEzPFi4TnaA0QyaBxbPgKUio5+cjeFzARY05+AOOd+7-0Q@mail.gmail.com>
	<CANkGpBv4c8neu4Uk3=j1aHD4xn+NFK0XNREfi3D-mj46vwEUGg@mail.gmail.com>
	<CANkGpBuHoUj0cuJ-dO8A7vweP41X28g-WqXVgyhrp72X2VjVAg@mail.gmail.com>
	<CA+HiwqFhukXr-GyNZiUgPJP=5Fobsa2UTgeC=p4=sA8r4hW+eA@mail.gmail.com>
	<CANkGpBuWaVQ5hMtod087VsgLsvbiCXOm9T1RDOiPdSsZH1Mfvw@mail.gmail.com>
	<CAMkU=1xG2zL2w-rjKceP8yM24A_jNtW-9LobHPKS-mrpdxfBDQ@mail.gmail.com>
	<8810.1375247630@sss.pgh.pa.us>
	<2EB17B60-33A2-4855-A176-0E8DD16ED7E1@gmail.com>
	<10906.1375273486@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

On Wed, Jul 31, 2013 at 08:24:46AM -0400, Tom Lane wrote:
> Alban Hertroys <haramrae@gmail.com> 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  <bruce@momjian.us>        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



view thread (12+ messages)

Message-ID: <20130809223907.GA30558@momjian.us>
Permalink:  ../20130809223907.GA30558@momjian.us/
Also on:    postgresql.org/message-id/20130809223907.GA30558@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: bruce@momjian.us, tgl@sss.pgh.pa.us, haramrae@gmail.com, jeff.janes@gmail.com, james.sewell@lisasoft.com
  Subject: Re: Snapshot backups
  In-Reply-To: <20130809223907.GA30558@momjian.us>
  References: <CANkGpBt8agjCS+__CceCKBHBNTEfFsmg5jnFd8MianQh0c0MMA@mail.gmail.com> <CABUevEzPFi4TnaA0QyaBxbPgKUio5+cjeFzARY05+AOOd+7-0Q@mail.gmail.com> <CANkGpBv4c8neu4Uk3=j1aHD4xn+NFK0XNREfi3D-mj46vwEUGg@mail.gmail.com> <CANkGpBuHoUj0cuJ-dO8A7vweP41X28g-WqXVgyhrp72X2VjVAg@mail.gmail.com> <CA+HiwqFhukXr-GyNZiUgPJP=5Fobsa2UTgeC=p4=sA8r4hW+eA@mail.gmail.com> <CANkGpBuWaVQ5hMtod087VsgLsvbiCXOm9T1RDOiPdSsZH1Mfvw@mail.gmail.com> <CAMkU=1xG2zL2w-rjKceP8yM24A_jNtW-9LobHPKS-mrpdxfBDQ@mail.gmail.com> <8810.1375247630@sss.pgh.pa.us> <2EB17B60-33A2-4855-A176-0E8DD16ED7E1@gmail.com> <10906.1375273486@sss.pgh.pa.us> <20130809223907.GA30558@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox