Skip site navigation (1) Skip section navigation (2)

pgsql: Split pg_start_backup() and pg_stop_backup() into two pieces

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Split pg_start_backup() and pg_stop_backup() into two pieces
Date: 2011-01-09 20:15:16
Message-ID: E1Pc1fY-0000va-MX@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Split pg_start_backup() and pg_stop_backup() into two pieces

Move the actual functionality into a separate function that's
easier to call internally, and change the SQL-callable function
to be a wrapper calling this.

Also create a pg_abort_backup() function, only callable internally,
that does only the most vital parts of pg_stop_backup(), making it
safe(r) to call from error handlers.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=4448917d51d6f87655ce357cca009634b0a136e4

Modified Files
--------------
src/backend/access/transam/xlog.c |   66 ++++++++++++++++++++++++++++++++----
src/include/access/xlog.h         |    4 ++
2 files changed, 62 insertions(+), 8 deletions(-)

pgsql-committers by date

Next:From: Tom LaneDate: 2011-01-09 20:25:39
Subject: pgsql: Improve comment.
Previous:From: Heikki LinnakangasDate: 2011-01-09 19:37:15
Subject: pgsql: Fix crash in the new GiST insertion code,when an update splits

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group