30#include "nodes/nodetags.h"
126#define pg_node_attr(...)
139#define nodeTag(nodeptr) (((const Node*)(nodeptr))->type)
161#define makeNode(_type_) ((_type_ *) newNode(sizeof(_type_),T_##_type_))
162#define NodeSetTag(nodeptr,t) (((Node*)(nodeptr))->type = (t))
164#define IsA(nodeptr,_type_) (nodeTag(nodeptr) == T_##_type_)
173#ifdef USE_ASSERT_CHECKING
180#define castNode(_type_, nodeptr) ((_type_ *) castNodeImpl(T_##_type_, nodeptr))
182#define castNode(_type_, nodeptr) ((_type_ *) (nodeptr))
204 int typlen,
bool typbyval);
213#ifdef DEBUG_NODE_TESTS_ENABLED
214extern void *stringToNodeWithLocations(
const char *
str);
230#define copyObject(obj) ((typeof(obj)) copyObjectImpl(obj))
232#define copyObject(obj) copyObjectImpl(obj)
238extern bool equal(
const void *
a,
const void *
b);
348#define IS_OUTER_JOIN(jointype) \
349 (((1 << (jointype)) & \
350 ((1 << JOIN_LEFT) | \
352 (1 << JOIN_RIGHT) | \
354 (1 << JOIN_RIGHT_ANTI))) != 0)
378#define AGGSPLITOP_COMBINE 0x01
379#define AGGSPLITOP_SKIPFINAL 0x02
380#define AGGSPLITOP_SERIALIZE 0x04
381#define AGGSPLITOP_DESERIALIZE 0x08
395#define DO_AGGSPLIT_COMBINE(as) (((as) & AGGSPLITOP_COMBINE) != 0)
396#define DO_AGGSPLIT_SKIPFINAL(as) (((as) & AGGSPLITOP_SKIPFINAL) != 0)
397#define DO_AGGSPLIT_SERIALIZE(as) (((as) & AGGSPLITOP_SERIALIZE) != 0)
398#define DO_AGGSPLIT_DESERIALIZE(as) (((as) & AGGSPLITOP_DESERIALIZE) != 0)
Assert(PointerIsAligned(start, uint64))
void * palloc0(Size size)
void * stringToNode(const char *str)
void outToken(struct StringInfoData *str, const char *s)
char * bmsToString(const struct Bitmapset *bms)
char * nodeToStringWithLocations(const void *obj)
#define AGGSPLITOP_DESERIALIZE
#define AGGSPLITOP_SKIPFINAL
struct Bitmapset * readBitmapset(void)
#define AGGSPLITOP_SERIALIZE
void outDatum(struct StringInfoData *str, Datum value, int typlen, bool typbyval)
void outBitmapset(struct StringInfoData *str, const struct Bitmapset *bms)
bool equal(const void *a, const void *b)
char * nodeToString(const void *obj)
@ AGGSPLIT_FINAL_DESERIAL
@ AGGSPLIT_INITIAL_SERIAL
Datum readDatum(bool typbyval)
void * copyObjectImpl(const void *from)
int * readIntCols(int numCols)
static Node * newNode(size_t size, NodeTag tag)
#define AGGSPLITOP_COMBINE
void outNode(struct StringInfoData *str, const void *obj)
Oid * readOidCols(int numCols)
int16 * readAttrNumberCols(int numCols)
bool * readBoolCols(int numCols)