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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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(-)

Browse pgsql-committers by date

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