4 * Functions for reading and writing timeline history files.
6 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
9 * src/include/access/timeline.h
18 * A list of these structs describes the timeline history of the server. Each
19 * TimeLineHistoryEntry represents a piece of WAL belonging to the history,
20 * from newest to oldest. All WAL locations between 'begin' and 'end' belong to
21 * the timeline represented by the entry. Together the 'begin' and 'end'
22 * pointers of all the entries form a contiguous line from beginning of time
44#endif /* TIMELINE_H */
List * readTimeLineHistory(TimeLineID targetTLI)
TimeLineID findNewestTimeLine(TimeLineID startTLI)
void writeTimeLineHistoryFile(TimeLineID tli, char *content, int size)
TimeLineID tliOfPointInHistory(XLogRecPtr ptr, List *history)
XLogRecPtr tliSwitchPoint(TimeLineID tli, List *history, TimeLineID *nextTLI)
bool existsTimeLineHistory(TimeLineID probeTLI)
void restoreTimeLineHistoryFiles(TimeLineID begin, TimeLineID end)
void writeTimeLineHistory(TimeLineID newTLI, TimeLineID parentTLI, XLogRecPtr switchpoint, char *reason)
bool tliInHistory(TimeLineID tli, List *expectedTLEs)
static List * expectedTLEs