Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id A541A64FE97 for ; Wed, 15 Oct 2008 14:22:22 -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 96443-04 for ; Wed, 15 Oct 2008 14:22:15 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by postgresql.org (Postfix) with ESMTP id A7A6764FE8F for ; Wed, 15 Oct 2008 14:22:15 -0300 (ADT) Received: by wa-out-1112.google.com with SMTP id j4so1634306wah.19 for ; Wed, 15 Oct 2008 10:22:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Yh2fEtmO9/ukLuRzAdXptr9tPD5U4M5+oZ26Ks4s0G4=; b=JyReGF3vJpjsQ+Gy7nMFLcx1F95Nj6MBufKXPxJp3p99tTiIOb/sw6uqItFfW8RcGl 0ZAiPY4w22u92HzrC4YNmJQdZT1D9aYBNC8qUYlp91pAawZKdzH9cfZlB1G9vOMclXlX 5jQmKrRvCR7LZ7ZIRXIrFnvfZxQjCZYpSKYAI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=hYcrZEkTsZ3wlQPUvurScKSVcASDVwJVYnLfpXO5MIaq19F3WPThiI3OsfNIWk0VaQ L4nn8gfrm76eS/SahlMF7E0aLJ4T2y1K2Xj1GX9ToCcE8z5sKGcT7hPl6+1QAmcbVi1s FAtXlr/qPQbJhz6CikKrlbHAJ0uH0o0M9k+mc= Received: by 10.115.72.17 with SMTP id z17mr1203678wak.7.1224091334392; Wed, 15 Oct 2008 10:22:14 -0700 (PDT) Received: by 10.114.39.11 with HTTP; Wed, 15 Oct 2008 10:22:14 -0700 (PDT) Message-ID: Date: Wed, 15 Oct 2008 11:22:14 -0600 From: "Scott Marlowe" To: "Ivan Voras" Subject: Re: Backup strategies Cc: "Aidan Van Dyk" , pgsql-performance@postgresql.org In-Reply-To: <9bbcef730810150758i4cc25431g41e4805c024615fd@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48F4D693.9000304@lerner.co.il> <48F5BBFC.80404@krogh.cc> <48F5D6AE.3000601@lelarge.info> <20081015141327.GW16893@yugib.highrise.ca> <9bbcef730810150758i4cc25431g41e4805c024615fd@mail.gmail.com> 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/89 X-Sequence-Number: 31670 On Wed, Oct 15, 2008 at 8:58 AM, Ivan Voras wrote: > 2008/10/15 Aidan Van Dyk : >> * Ivan Voras [081015 10:05]: >> >>> So, pg_start_backup() freezes the data at the time it's called but still >>> data and xlog are changed, in a different way that's safe to backup? Why >>> not run with pg_start_backup() always enabled? >> >> I think your missing the whole point of "pg_start_backup()". >> pg_start_backup()" is *part* of a full PITR/backup run. i.e. you use it >> when you have an archive command working as well. It's *not* mean tto >> just allow you to do a filesystem copy inside a running data directory. > > Possibly - that's why I'm sticking to this thread :) My context is > doing full filesystem-only copies/backups of the database (xlogs & > all) - is pg_start_backup() applicable? Just an FYI, there are some issues with using filesystems that support snapshots, depending on the OS / filesystem. For instance, the LVM, which linux uses that allows snapshots, has issues with write barriers and also has a maximum throughput of about 300Meg/second. It's all a trade-off, but I don't run my db files on LVM because of those two problems.