diff options
author | Robert Haas | 2017-01-24 21:42:58 +0000 |
---|---|---|
committer | Robert Haas | 2017-01-24 21:42:58 +0000 |
commit | 7b4ac19982a77a1a2a6f096c4a11ee7325a14d2c (patch) | |
tree | ac2192af5b3aa1c9898c67c304f9ab239f044a1d /src/include/c.h | |
parent | 587cda35ca331128db6c61d406d312654572834a (diff) |
Extend index AM API for parallel index scans.
This patch doesn't actually make any index AM parallel-aware, but it
provides the necessary functions at the AM layer to do so.
Rahila Syed, Amit Kapila, Robert Haas
Diffstat (limited to 'src/include/c.h')
-rw-r--r-- | src/include/c.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/c.h b/src/include/c.h index efbb77f540a..a2c043adfbf 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -527,6 +527,9 @@ typedef NameData *Name; #define PointerIsAligned(pointer, type) \ (((uintptr_t)(pointer) % (sizeof (type))) == 0) +#define OffsetToPointer(base, offset) \ + ((void *)((char *) base + offset)) + #define OidIsValid(objectId) ((bool) ((objectId) != InvalidOid)) #define RegProcedureIsValid(p) OidIsValid(p) |