diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-08-06 03:53:44 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-08-06 03:53:44 +0000 |
commit | 704ddaaa094063f4c5beb2f68375726b37f162f5 (patch) | |
tree | efe430ad85dc54372e03a7ef8186785efcf46900 /src/include/access/xlog_internal.h | |
parent | c0dc166adc2d2e545ba1cacb7dfce1c013a92fef (diff) | |
download | postgresql-704ddaaa094063f4c5beb2f68375726b37f162f5.tar.gz postgresql-704ddaaa094063f4c5beb2f68375726b37f162f5.zip |
Add support for forcing a switch to a new xlog file; cause such a switch
to happen automatically during pg_stop_backup(). Add some functions for
interrogating the current xlog insertion point and for easily extracting
WAL filenames from the hex WAL locations displayed by pg_stop_backup
and friends. Simon Riggs with some editorialization by Tom Lane.
Diffstat (limited to 'src/include/access/xlog_internal.h')
-rw-r--r-- | src/include/access/xlog_internal.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/access/xlog_internal.h b/src/include/access/xlog_internal.h index 430f57efa89..6aeda55429d 100644 --- a/src/include/access/xlog_internal.h +++ b/src/include/access/xlog_internal.h @@ -11,7 +11,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/xlog_internal.h,v 1.13 2006/04/05 03:34:05 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/xlog_internal.h,v 1.14 2006/08/06 03:53:44 tgl Exp $ */ #ifndef XLOG_INTERNAL_H #define XLOG_INTERNAL_H @@ -241,5 +241,9 @@ extern const RmgrData RmgrTable[]; */ extern Datum pg_start_backup(PG_FUNCTION_ARGS); extern Datum pg_stop_backup(PG_FUNCTION_ARGS); +extern Datum pg_switch_xlog(PG_FUNCTION_ARGS); +extern Datum pg_current_xlog_location(PG_FUNCTION_ARGS); +extern Datum pg_xlogfile_name_offset(PG_FUNCTION_ARGS); +extern Datum pg_xlogfile_name(PG_FUNCTION_ARGS); #endif /* XLOG_INTERNAL_H */ |