From 7803e9327db3788f68d820c19f4081afb79edd12 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Mon, 11 Feb 2013 18:13:09 +0200 Subject: Include previous TLI in end-of-recovery and shutdown checkpoint records. This isn't used for anything but a sanity check at the moment, but it could be highly valuable for debugging purposes. It could also be used to recreate timeline history by traversing WAL, which seems useful. --- src/include/catalog/pg_control.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include/catalog') diff --git a/src/include/catalog/pg_control.h b/src/include/catalog/pg_control.h index ec8cea7c86e..0c647e77ad7 100644 --- a/src/include/catalog/pg_control.h +++ b/src/include/catalog/pg_control.h @@ -21,7 +21,7 @@ /* Version identifier for this pg_control format */ -#define PG_CONTROL_VERSION 933 +#define PG_CONTROL_VERSION 934 /* * Body of CheckPoint XLOG records. This is declared here because we keep @@ -33,6 +33,8 @@ typedef struct CheckPoint XLogRecPtr redo; /* next RecPtr available when we began to * create CheckPoint (i.e. REDO start point) */ TimeLineID ThisTimeLineID; /* current TLI */ + TimeLineID PrevTimeLineID; /* previous TLI, if this record begins a new + * timeline (equals ThisTimeLineID otherwise) */ bool fullPageWrites; /* current full_page_writes */ uint32 nextXidEpoch; /* higher-order bits of nextXid */ TransactionId nextXid; /* next free XID */ -- cgit v1.2.3