diff options
| author | Tom Lane | 2004-07-19 02:47:16 +0000 |
|---|---|---|
| committer | Tom Lane | 2004-07-19 02:47:16 +0000 |
| commit | 66ec2db72840e4e400d879578744420c969ed7bf (patch) | |
| tree | 44aa43c732dabe83405bc3a456f5f8c43845bf7c /src/include | |
| parent | d0c1bbdcc61a4ac7cf005451af507ea8d0c64f54 (diff) | |
XLOG file archiving and point-in-time recovery. There are still some
loose ends and a glaring lack of documentation, but it basically works.
Simon Riggs with some editorialization by Tom Lane.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/access/xlog.h | 5 | ||||
| -rw-r--r-- | src/include/postmaster/pgarch.h | 26 | ||||
| -rw-r--r-- | src/include/storage/pmsignal.h | 3 |
3 files changed, 32 insertions, 2 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index 1c29ab07626..630a62d77a9 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.52 2004/07/01 00:51:38 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.53 2004/07/19 02:47:13 tgl Exp $ */ #ifndef XLOG_H #define XLOG_H @@ -208,9 +208,12 @@ extern XLogRecPtr ProcLastRecEnd; /* these variables are GUC parameters related to XLOG */ extern int CheckPointSegments; extern int XLOGbuffers; +extern char *XLogArchiveCommand; extern char *XLOG_sync_method; extern const char XLOG_sync_method_default[]; +#define XLogArchivingActive() (XLogArchiveCommand[0] != '\0') + #ifdef WAL_DEBUG extern bool XLOG_DEBUG; #endif diff --git a/src/include/postmaster/pgarch.h b/src/include/postmaster/pgarch.h new file mode 100644 index 00000000000..0ce9e15781d --- /dev/null +++ b/src/include/postmaster/pgarch.h @@ -0,0 +1,26 @@ +/*------------------------------------------------------------------------- + * + * pgarch.h + * Exports from postmaster/pgarch.c. + * + * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * $PostgreSQL: pgsql/src/include/postmaster/pgarch.h,v 1.1 2004/07/19 02:47:16 tgl Exp $ + * + *------------------------------------------------------------------------- + */ +#ifndef _PGARCH_H +#define _PGARCH_H + +/* ---------- + * Functions called from postmaster + * ---------- + */ +extern int pgarch_start(void); + +#ifdef EXEC_BACKEND +extern void PgArchiverMain(int argc, char *argv[]); +#endif + +#endif /* _PGARCH_H */ diff --git a/src/include/storage/pmsignal.h b/src/include/storage/pmsignal.h index 4180c95c735..808e5013c0c 100644 --- a/src/include/storage/pmsignal.h +++ b/src/include/storage/pmsignal.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/pmsignal.h,v 1.8 2004/05/29 22:48:23 tgl Exp $ + * $PostgreSQL: pgsql/src/include/storage/pmsignal.h,v 1.9 2004/07/19 02:47:15 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -24,6 +24,7 @@ typedef enum { PMSIGNAL_PASSWORD_CHANGE, /* pg_pwd file has changed */ PMSIGNAL_WAKEN_CHILDREN, /* send a SIGUSR1 signal to all backends */ + PMSIGNAL_WAKEN_ARCHIVER, /* send a NOTIFY signal to xlog archiver */ NUM_PMSIGNALS /* Must be last value of enum! */ } PMSignalReason; |
