30#include "nodes/nodetags.h"
120#define pg_node_attr(...)
133#define nodeTag(nodeptr) (((const Node*)(nodeptr))->type)
155#define makeNode(_type_) ((_type_ *) newNode(sizeof(_type_),T_##_type_))
156#define NodeSetTag(nodeptr,t) (((Node*)(nodeptr))->type = (t))
158#define IsA(nodeptr,_type_) (nodeTag(nodeptr) == T_##_type_)
167#ifdef USE_ASSERT_CHECKING
174#define castNode(_type_, nodeptr) ((_type_ *) castNodeImpl(T_##_type_, nodeptr))
176#define castNode(_type_, nodeptr) ((_type_ *) (nodeptr))
196 int typlen,
bool typbyval);
205#ifdef DEBUG_NODE_TESTS_ENABLED
206extern void *stringToNodeWithLocations(
const char *
str);
209extern uintptr_t
readDatum(
bool typbyval);
222#define copyObject(obj) ((typeof(obj)) copyObjectImpl(obj))
224#define copyObject(obj) copyObjectImpl(obj)
230extern bool equal(
const void *
a,
const void *
b);
338#define IS_OUTER_JOIN(jointype) \
339 (((1 << (jointype)) & \
340 ((1 << JOIN_LEFT) | \
342 (1 << JOIN_RIGHT) | \
344 (1 << JOIN_RIGHT_ANTI))) != 0)
368#define AGGSPLITOP_COMBINE 0x01
369#define AGGSPLITOP_SKIPFINAL 0x02
370#define AGGSPLITOP_SERIALIZE 0x04
371#define AGGSPLITOP_DESERIALIZE 0x08
385#define DO_AGGSPLIT_COMBINE(as) (((as) & AGGSPLITOP_COMBINE) != 0)
386#define DO_AGGSPLIT_SKIPFINAL(as) (((as) & AGGSPLITOP_SKIPFINAL) != 0)
387#define DO_AGGSPLIT_SERIALIZE(as) (((as) & AGGSPLITOP_SERIALIZE) != 0)
388#define DO_AGGSPLIT_DESERIALIZE(as) (((as) & AGGSPLITOP_DESERIALIZE) != 0)
#define Assert(condition)
void * palloc0(Size size)
void * stringToNode(const char *str)
void outToken(struct StringInfoData *str, const char *s)
char * bmsToString(const struct Bitmapset *bms)
void outDatum(struct StringInfoData *str, uintptr_t value, int typlen, bool typbyval)
char * nodeToStringWithLocations(const void *obj)
#define AGGSPLITOP_DESERIALIZE
#define AGGSPLITOP_SKIPFINAL
struct Bitmapset * readBitmapset(void)
#define AGGSPLITOP_SERIALIZE
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
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)
uintptr_t readDatum(bool typbyval)
int16 * readAttrNumberCols(int numCols)
bool * readBoolCols(int numCols)
static pg_noinline void Size size