1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

Revert timeline following in replication slots

This reverts commits f07d18b6e9, 82c83b3372, 3a3b309041, and
24c5f1a103.

This feature has shown enough immaturity that it was deemed better to
rip it out before rushing some more fixes at the last minute.  There are
discussions on larger changes in this area for the next release.
This commit is contained in:
Alvaro Herrera
2016-05-04 17:32:22 -03:00
parent 6535bf3998
commit c1543a81a7
17 changed files with 20 additions and 772 deletions

View File

@ -27,10 +27,6 @@
#include "access/xlogrecord.h"
#ifndef FRONTEND
#include "nodes/pg_list.h"
#endif
typedef struct XLogReaderState XLogReaderState;
/* Function type definition for the read_page callback */
@ -164,25 +160,11 @@ struct XLogReaderState
/* beginning of the WAL record being read. */
XLogRecPtr currRecPtr;
/* timeline to read it from, 0 if a lookup is required */
TimeLineID currTLI;
/*
* Safe point to read to in currTLI. If currTLI is historical, then this
* is set to the end of the last whole segment that contains that TLI;
* if currTLI is ThisTimeLineID, this is InvalidXLogRecPtr. This is *not*
* the tliSwitchPoint.
*/
XLogRecPtr currTLIValidUntil;
/* Buffer for current ReadRecord result (expandable) */
char *readRecordBuf;
uint32 readRecordBufSize;
#ifndef FRONTEND
/* cached timeline history, only available in backend */
List *timelineHistory;
#endif
/* Buffer to hold error message */
char *errormsg_buf;
};