OSDN Git Service

Split pg_start_backup() and pg_stop_backup() into two pieces
authorMagnus Hagander <magnus@hagander.net>
Sun, 9 Jan 2011 20:00:28 +0000 (21:00 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sun, 9 Jan 2011 20:00:28 +0000 (21:00 +0100)
commit4448917d51d6f87655ce357cca009634b0a136e4
tree0b3d7fdcbb1ed03c76e770a0f1313e34c6cc2671
parentca63029eac379d82f78a985a5d4068b9954deb02
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.
src/backend/access/transam/xlog.c
src/include/access/xlog.h