Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anVtf-0004fp-Eu for pgsql-committers@arkaria.postgresql.org; Tue, 05 Apr 2016 18:40:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1anVtf-0006op-1c for pgsql-committers@arkaria.postgresql.org; Tue, 05 Apr 2016 18:40:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1anVte-0006nv-Hy for pgsql-committers@postgresql.org; Tue, 05 Apr 2016 18:40:14 +0000 Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1anVtX-0002ax-Py for pgsql-committers@postgresql.org; Tue, 05 Apr 2016 18:40:14 +0000 Received: by mail-ob0-x22a.google.com with SMTP id j9so15438952obd.3 for ; Tue, 05 Apr 2016 11:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=I+Ws8IQ6cF5f+KUHBS4/8lU37U7yhL18yW1PilzID28=; b=aJzg+75Ww9O86cSytlurlDHSH4nb/xb7t3dDjXByoKwDSATl1/KjTTPglbF37RIqeM nGoJ9llV0La1rVVTqKrLMm7e8Yz4xKmSEx1bDruHUHqu4RGmbPzRx+LP0HB1KP5Mbn4E 6QuCk6xfspeiJuHFrcKJdcf+4lJaApAa3Qdu/+2dH/lvletLPjh/lWqUhm5ndVy49zYF xwS9QlNkPJ+xTbc4bWMmN1hqCf8/SeNgAk3gn3l85Ub35QGEfYIfGbmo2jPs2gTVtXxI u/B9dRAubVRO2UbqVPozwflrrIgsUWcwcwxgsbYQlMAn5idrG+/euujg7rdZPMpEOUam 5cXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=I+Ws8IQ6cF5f+KUHBS4/8lU37U7yhL18yW1PilzID28=; b=lp72l/HfuAPryeUZndbjZ+MoBPRLv8UaTmVoLD50eE4VQbzxk/yyrBHzSNLELyUypo iKcWRXihBb6diLw1qXr8V326Z0/FJciFfKppnDTZ7TmgUDXafap6Xi2YHgA+VaLA51Ms vZR8L3dL30YxHQBXg6bxi9slR2wQTdC1lH8Dal7Xyjuzz1CZE7Hhk2xZTq+5hcBUFDJW g3Xqy04J19hFk/hWkQN9JozX19VnLo5xIfhr8N3AJ75hVaSN8oCQ9L1ch7QOxR8tdG/L 8BnyHwbcOBXy9sYK/MeccStjm+EaK7J684QrwD4dO9eMTNgXL6Nj4Ff9bumR/UPMgou7 3tTQ== X-Gm-Message-State: AD7BkJJjHcKqfEbQ5hjicTgXNTH1UJwpRzPxYjaQ/KONSeHTdry95gX2CxZELTK0RqdFKYmrGw/u+MqMYnjavg== MIME-Version: 1.0 X-Received: by 10.182.60.135 with SMTP id h7mr2682044obr.16.1459881605562; Tue, 05 Apr 2016 11:40:05 -0700 (PDT) Received: by 10.157.15.104 with HTTP; Tue, 5 Apr 2016 11:40:05 -0700 (PDT) In-Reply-To: References: Date: Tue, 5 Apr 2016 20:40:05 +0200 Message-ID: Subject: Re: pgsql: Implement backup API functions for non-exclusive backups From: Magnus Hagander To: Robert Haas Cc: pgsql-committers Content-Type: multipart/alternative; boundary=001a11c1c2bc83904b052fc12c65 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org --001a11c1c2bc83904b052fc12c65 Content-Type: text/plain; charset=UTF-8 On Tue, Apr 5, 2016 at 8:35 PM, Robert Haas wrote: > On Tue, Apr 5, 2016 at 2:11 PM, Magnus Hagander > wrote: > > Implement backup API functions for non-exclusive backups > > > > Previously non-exclusive backups had to be done using the replication > protocol > > and pg_basebackup. With this commit it's now possible to make them using > > pg_start_backup/pg_stop_backup as well, as long as the backup program can > > maintain a persistent connection to the database. > > > > Doing this, backup_label and tablespace_map are returned as results from > > pg_stop_backup() instead of being written to the data directory. This > makes > > the server safe from a crash during an ongoing backup, which can be a > problem > > with exclusive backups. > > > > The old syntax of the functions remain and work exactly as before, but > since the > > new syntax is safer this should eventually be deprecated and removed. > > > > Only reference documentation is included. The main section on backup > still needs > > to be rewritten to cover this, but since that is already scheduled for a > separate > > large rewrite, it's not included in this patch. > > > > Reviewed by David Steele and Amit Kapila > > We've typically tried to keep the width of commit messages narrow > enough that 'git log' looks OK in an 80-character window; this one is > wide enough that it doesn't. > Huh. It would appear I've somehow screwed up the commit-message-mode that is supposed to warn me about that. My apologies. -- Magnus Hagander Me: http://www.hagander.net/ Work: http://www.redpill-linpro.com/ --001a11c1c2bc83904b052fc12c65 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= ue, Apr 5, 2016 at 8:35 PM, Robert Haas <robertmhaas@gmail.com>= wrote:
On Tue, A= pr 5, 2016 at 2:11 PM, Magnus Hagander <magnus@hagander.net> wrote:
> Implement backup API functions for non-exclusive backups
>
> Previously non-exclusive backups had to be done using the replication = protocol
> and pg_basebackup. With this commit it's now possible to make them= using
> pg_start_backup/pg_stop_backup as well, as long as the backup program = can
> maintain a persistent connection to the database.
>
> Doing this, backup_label and tablespace_map are returned as results fr= om
> pg_stop_backup() instead of being written to the data directory. This = makes
> the server safe from a crash during an ongoing backup, which can be a = problem
> with exclusive backups.
>
> The old syntax of the functions remain and work exactly as before, but= since the
> new syntax is safer this should eventually be deprecated and removed.<= br> >
> Only reference documentation is included. The main section on backup s= till needs
> to be rewritten to cover this, but since that is already scheduled for= a separate
> large rewrite, it's not included in this patch.
>
> Reviewed by David Steele and Amit Kapila

We've typically tried to keep the width of commit messages narro= w
enough that 'git log' looks OK in an 80-character window; this one = is
wide enough that it doesn't.

Huh. I= t would appear I've somehow screwed up the commit-message-mode that is = supposed to warn me about that.

My apologies.=C2= =A0


--
=C2=A0Magnus Hagander
=C2=A0Me: http://www.hagander.net/
=C2=A0Work: http://www.redpill-= linpro.com/
--001a11c1c2bc83904b052fc12c65--