1 /*-------------------------------------------------------------------------
4 * POSTGRES time qualification definitions.
7 * Copyright (c) 1994, Regents of the University of California
9 * $Id: tqual.h,v 1.7 1997/09/07 05:03:03 momjian Exp $
12 * It may be desirable to allow time qualifications to indicate
15 *-------------------------------------------------------------------------
20 #include <access/htup.h>
22 typedef struct TimeQualSpace
27 typedef Pointer TimeQual;
29 /* Tuples valid as of StartTransactionCommand */
30 #define NowTimeQual ((TimeQual) NULL)
32 /* As above, plus updates in this command */
33 extern TimeQual SelfTimeQual;
35 extern void setheapoverride(bool on);
36 extern bool heapisoverride(void);
38 extern TimeQual TimeFormSnapshotTimeQual(AbsoluteTime time);
40 TimeFormRangedTimeQual(AbsoluteTime startTime,
41 AbsoluteTime endTime);
42 extern bool HeapTupleSatisfiesTimeQual(HeapTuple tuple, TimeQual qual);