summaryrefslogtreecommitdiff
path: root/src/include/access/xlog.h
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2011-01-09 21:00:28 +0100
committerMagnus Hagander <magnus@hagander.net>2011-01-09 21:00:28 +0100
commit4448917d51d6f87655ce357cca009634b0a136e4 (patch)
tree0b3d7fdcbb1ed03c76e770a0f1313e34c6cc2671 /src/include/access/xlog.h
parentca63029eac379d82f78a985a5d4068b9954deb02 (diff)
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.
Diffstat (limited to 'src/include/access/xlog.h')
-rw-r--r--src/include/access/xlog.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h
index 2ed1c640ed4..74d34279de2 100644
--- a/src/include/access/xlog.h
+++ b/src/include/access/xlog.h
@@ -312,4 +312,8 @@ extern void HandleStartupProcInterrupts(void);
extern void StartupProcessMain(void);
extern void WakeupRecovery(void);
+extern XLogRecPtr do_pg_start_backup(const char *backupidstr, bool fast);
+extern XLogRecPtr do_pg_stop_backup(void);
+extern void do_pg_abort_backup(void);
+
#endif /* XLOG_H */