76 #define ACL_INSERT (1<<0)
77 #define ACL_SELECT (1<<1)
78 #define ACL_UPDATE (1<<2)
79 #define ACL_DELETE (1<<3)
80 #define ACL_TRUNCATE (1<<4)
81 #define ACL_REFERENCES (1<<5)
82 #define ACL_TRIGGER (1<<6)
83 #define ACL_EXECUTE (1<<7)
84 #define ACL_USAGE (1<<8)
85 #define ACL_CREATE (1<<9)
86 #define ACL_CREATE_TEMP (1<<10)
87 #define ACL_CONNECT (1<<11)
88 #define ACL_SET (1<<12)
89 #define ACL_ALTER_SYSTEM (1<<13)
90 #define ACL_MAINTAIN (1<<14)
91 #define N_ACL_RIGHTS 15
92 #define ACL_NO_RIGHTS 0
94 #define ACL_SELECT_FOR_UPDATE ACL_UPDATE
131 uint64 queryId
pg_node_attr(equal_ignore, query_jumble_ignore, read_write_ignore, read_as(0));
361 pg_node_attr(custom_copy_equal, custom_read_write, custom_query_jumble)
583 #define FRAMEOPTION_NONDEFAULT 0x00001
584 #define FRAMEOPTION_RANGE 0x00002
585 #define FRAMEOPTION_ROWS 0x00004
586 #define FRAMEOPTION_GROUPS 0x00008
587 #define FRAMEOPTION_BETWEEN 0x00010
588 #define FRAMEOPTION_START_UNBOUNDED_PRECEDING 0x00020
589 #define FRAMEOPTION_END_UNBOUNDED_PRECEDING 0x00040
590 #define FRAMEOPTION_START_UNBOUNDED_FOLLOWING 0x00080
591 #define FRAMEOPTION_END_UNBOUNDED_FOLLOWING 0x00100
592 #define FRAMEOPTION_START_CURRENT_ROW 0x00200
593 #define FRAMEOPTION_END_CURRENT_ROW 0x00400
594 #define FRAMEOPTION_START_OFFSET_PRECEDING 0x00800
595 #define FRAMEOPTION_END_OFFSET_PRECEDING 0x01000
596 #define FRAMEOPTION_START_OFFSET_FOLLOWING 0x02000
597 #define FRAMEOPTION_END_OFFSET_FOLLOWING 0x04000
598 #define FRAMEOPTION_EXCLUDE_CURRENT_ROW 0x08000
599 #define FRAMEOPTION_EXCLUDE_GROUP 0x10000
600 #define FRAMEOPTION_EXCLUDE_TIES 0x20000
602 #define FRAMEOPTION_START_OFFSET \
603 (FRAMEOPTION_START_OFFSET_PRECEDING | FRAMEOPTION_START_OFFSET_FOLLOWING)
604 #define FRAMEOPTION_END_OFFSET \
605 (FRAMEOPTION_END_OFFSET_PRECEDING | FRAMEOPTION_END_OFFSET_FOLLOWING)
606 #define FRAMEOPTION_EXCLUSION \
607 (FRAMEOPTION_EXCLUDE_CURRENT_ROW | FRAMEOPTION_EXCLUDE_GROUP | \
608 FRAMEOPTION_EXCLUDE_TIES)
610 #define FRAMEOPTION_DEFAULTS \
611 (FRAMEOPTION_RANGE | FRAMEOPTION_START_UNBOUNDED_PRECEDING | \
612 FRAMEOPTION_END_CURRENT_ROW)
1704 #define GetCTETargetList(cte) \
1705 (AssertMacro(IsA((cte)->ctequery, Query)), \
1706 ((Query *) (cte)->ctequery)->commandType == CMD_SELECT ? \
1707 ((Query *) (cte)->ctequery)->targetList : \
1708 ((Query *) (cte)->ctequery)->returningList)
2716 #define FKCONSTR_ACTION_NOACTION 'a'
2717 #define FKCONSTR_ACTION_RESTRICT 'r'
2718 #define FKCONSTR_ACTION_CASCADE 'c'
2719 #define FKCONSTR_ACTION_SETNULL 'n'
2720 #define FKCONSTR_ACTION_SETDEFAULT 'd'
2723 #define FKCONSTR_MATCH_FULL 'f'
2724 #define FKCONSTR_MATCH_PARTIAL 'p'
2725 #define FKCONSTR_MATCH_SIMPLE 's'
3182 #define OPCLASS_ITEM_OPERATOR 1
3183 #define OPCLASS_ITEM_FUNCTION 2
3184 #define OPCLASS_ITEM_STORAGETYPE 3
3283 #define CURSOR_OPT_BINARY 0x0001
3284 #define CURSOR_OPT_SCROLL 0x0002
3285 #define CURSOR_OPT_NO_SCROLL 0x0004
3286 #define CURSOR_OPT_INSENSITIVE 0x0008
3287 #define CURSOR_OPT_ASENSITIVE 0x0010
3288 #define CURSOR_OPT_HOLD 0x0020
3290 #define CURSOR_OPT_FAST_PLAN 0x0100
3291 #define CURSOR_OPT_GENERIC_PLAN 0x0200
3292 #define CURSOR_OPT_CUSTOM_PLAN 0x0400
3293 #define CURSOR_OPT_PARALLEL_OK 0x0800
3328 #define FETCH_ALL LONG_MAX
struct AlterDatabaseRefreshCollStmt AlterDatabaseRefreshCollStmt
struct DropSubscriptionStmt DropSubscriptionStmt
struct CreateEnumStmt CreateEnumStmt
struct CreateFunctionStmt CreateFunctionStmt
struct AlterOwnerStmt AlterOwnerStmt
struct ReturnStmt ReturnStmt
struct CreateAmStmt CreateAmStmt
@ ALTER_SUBSCRIPTION_ENABLED
@ ALTER_SUBSCRIPTION_DROP_PUBLICATION
@ ALTER_SUBSCRIPTION_SET_PUBLICATION
@ ALTER_SUBSCRIPTION_REFRESH
@ ALTER_SUBSCRIPTION_SKIP
@ ALTER_SUBSCRIPTION_OPTIONS
@ ALTER_SUBSCRIPTION_CONNECTION
@ ALTER_SUBSCRIPTION_ADD_PUBLICATION
struct TableLikeClause TableLikeClause
struct AlterSystemStmt AlterSystemStmt
@ TRANS_STMT_COMMIT_PREPARED
@ TRANS_STMT_ROLLBACK_PREPARED
struct GrantRoleStmt GrantRoleStmt
struct AlterTSDictionaryStmt AlterTSDictionaryStmt
struct OnConflictClause OnConflictClause
struct JsonTablePathSpec JsonTablePathSpec
struct AlterOperatorStmt AlterOperatorStmt
@ WCO_RLS_MERGE_UPDATE_CHECK
@ WCO_RLS_MERGE_DELETE_CHECK
struct RangeTblFunction RangeTblFunction
struct JsonScalarExpr JsonScalarExpr
struct JsonArrayAgg JsonArrayAgg
struct A_Indirection A_Indirection
struct XmlSerialize XmlSerialize
struct DeallocateStmt DeallocateStmt
struct CreateSeqStmt CreateSeqStmt
struct DropTableSpaceStmt DropTableSpaceStmt
struct CreateExtensionStmt CreateExtensionStmt
struct A_Indices A_Indices
struct CreateTableSpaceStmt CreateTableSpaceStmt
struct ReassignOwnedStmt ReassignOwnedStmt
struct VacuumStmt VacuumStmt
struct NotifyStmt NotifyStmt