Hi all,
timeline.h quotes that the end point of timeline history entry means
infinity when its value is 0. But that's not completely true, I think
that what is meant here is InvalidXLogRecPtr:
{
TimeLineID tli;
XLogRecPtr begin; /* inclusive */
- XLogRecPtr end; /* exclusive, 0 means
infinity */
+ XLogRecPtr end; /* exclusive,
InvalidXLogRecPtr means
+ * infinity */
} TimeLineHistoryEntry;
And the code leads into this direction as well.
Regards,
--
Michael
diff --git a/src/include/access/timeline.h b/src/include/access/timeline.h
index 2b62a56..01437c0 100644
--- a/src/include/access/timeline.h
+++ b/src/include/access/timeline.h
@@ -26,7 +26,8 @@ typedef struct
{
TimeLineID tli;
XLogRecPtr begin; /* inclusive */
- XLogRecPtr end; /* exclusive, 0 means infinity */
+ XLogRecPtr end; /* exclusive, InvalidXLogRecPtr means
+ * infinity */
} TimeLineHistoryEntry;
extern List *readTimeLineHistory(TimeLineID targetTLI);
--
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers