summaryrefslogtreecommitdiff
path: root/src/include/access/robert_slot.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/access/robert_slot.h')
-rw-r--r--src/include/access/robert_slot.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/include/access/robert_slot.h b/src/include/access/robert_slot.h
new file mode 100644
index 0000000000..8e7585b21d
--- /dev/null
+++ b/src/include/access/robert_slot.h
@@ -0,0 +1,31 @@
+/*
+ * robert_slot.h
+ */
+
+#ifndef ROBERT_SLOT_H
+#define ROBERT_SLOT_H
+
+#include "access/robert_tuple.h"
+#include "executor/tuptable.h"
+#include "utils/rel.h"
+
+typedef struct RobertTupleTableSlot
+{
+ TupleTableSlot base;
+ RobertTuple tuple;
+ uint32 off;
+} RobertTupleTableSlot;
+
+extern PGDLLIMPORT const TupleTableSlotOps TTSOpsRobert;
+
+extern const TupleTableSlotOps *robert_slot_callbacks(Relation relation);
+extern void robert_slot_store(TupleTableSlot *slot, RobertTupleHeader td,
+ Size len, Oid tableOid, BlockNumber blkno,
+ OffsetNumber offset);
+extern bool robert_slot_store_visible(TupleTableSlot *slot,
+ RobertTupleHeader td, Size len,
+ Oid tableOid, BlockNumber blkno,
+ OffsetNumber offset, Snapshot snapshot,
+ bool item_is_dead);
+
+#endif