Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D545C64FD82 for ; Wed, 15 Oct 2008 08:40:35 -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 09327-10 for ; Wed, 15 Oct 2008 08:40:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd-2317.dedibox.fr (sd-2317.dedibox.fr [88.191.17.192]) by postgresql.org (Postfix) with ESMTP id 9B3CB64FD91 for ; Wed, 15 Oct 2008 08:40:32 -0300 (ADT) Received: from [192.168.10.64] (ASte-Genev-Bois-153-1-58-150.w81-249.abo.wanadoo.fr [81.249.208.150]) by sd-2317.dedibox.fr (Postfix) with ESMTP id D10162635; Wed, 15 Oct 2008 13:40:30 +0200 (CEST) Message-ID: <48F5D6AE.3000601@lelarge.info> Date: Wed, 15 Oct 2008 13:40:30 +0200 From: Guillaume Lelarge User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: Ivan Voras CC: pgsql-performance@postgresql.org Subject: Re: Backup strategies References: <48F4D693.9000304@lerner.co.il> <48F5BBFC.80404@krogh.cc> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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/82 X-Sequence-Number: 31663 Ivan Voras a écrit : > Jesper Krogh wrote: >>[...] >> It worked when I tested it, but I may just have been darn lucky. > > No, it should be ok - I just didn't catch up with the times :) At least > that's my interpretation of this paragraph in documentation: > > """Some backup tools that you might wish to use emit warnings or errors > if the files they are trying to copy change while the copy proceeds. > This situation is normal, and not an error, when taking a base backup of > an active database; so you need to ensure that you can distinguish > complaints of this sort from real errors...""" > > It looks like PostgreSQL freezes the state of the "data" directory in > this case (and new data goes only to the transaction log - pg_xlog), > which effectively creates an application-level snapshot. Good to know. > Nope. Even files in data directory change. That's why the documentation warns against tools that emit errors for files that change during the copy. -- Guillaume. http://www.postgresqlfr.org http://dalibo.com