63 #define ACL_INSERT (1<<0)
64 #define ACL_SELECT (1<<1)
65 #define ACL_UPDATE (1<<2)
66 #define ACL_DELETE (1<<3)
67 #define ACL_TRUNCATE (1<<4)
68 #define ACL_REFERENCES (1<<5)
69 #define ACL_TRIGGER (1<<6)
70 #define ACL_EXECUTE (1<<7)
71 #define ACL_USAGE (1<<8)
73 #define ACL_CREATE (1<<9)
74 #define ACL_CREATE_TEMP (1<<10)
75 #define ACL_CONNECT (1<<11)
76 #define N_ACL_RIGHTS 12
77 #define ACL_NO_RIGHTS 0
79 #define ACL_SELECT_FOR_UPDATE ACL_UPDATE
487 #define FRAMEOPTION_NONDEFAULT 0x00001
488 #define FRAMEOPTION_RANGE 0x00002
489 #define FRAMEOPTION_ROWS 0x00004
490 #define FRAMEOPTION_BETWEEN 0x00008
491 #define FRAMEOPTION_START_UNBOUNDED_PRECEDING 0x00010
492 #define FRAMEOPTION_END_UNBOUNDED_PRECEDING 0x00020
493 #define FRAMEOPTION_START_UNBOUNDED_FOLLOWING 0x00040
494 #define FRAMEOPTION_END_UNBOUNDED_FOLLOWING 0x00080
495 #define FRAMEOPTION_START_CURRENT_ROW 0x00100
496 #define FRAMEOPTION_END_CURRENT_ROW 0x00200
497 #define FRAMEOPTION_START_VALUE_PRECEDING 0x00400
498 #define FRAMEOPTION_END_VALUE_PRECEDING 0x00800
499 #define FRAMEOPTION_START_VALUE_FOLLOWING 0x01000
500 #define FRAMEOPTION_END_VALUE_FOLLOWING 0x02000
502 #define FRAMEOPTION_START_VALUE \
503 (FRAMEOPTION_START_VALUE_PRECEDING | FRAMEOPTION_START_VALUE_FOLLOWING)
504 #define FRAMEOPTION_END_VALUE \
505 (FRAMEOPTION_END_VALUE_PRECEDING | FRAMEOPTION_END_VALUE_FOLLOWING)
507 #define FRAMEOPTION_DEFAULTS \
508 (FRAMEOPTION_RANGE | FRAMEOPTION_START_UNBOUNDED_PRECEDING | \
509 FRAMEOPTION_END_CURRENT_ROW)
1199 #define GetCTETargetList(cte) \
1200 (AssertMacro(IsA((cte)->ctequery, Query)), \
1201 ((Query *) (cte)->ctequery)->commandType == CMD_SELECT ? \
1202 ((Query *) (cte)->ctequery)->targetList : \
1203 ((Query *) (cte)->ctequery)->returningList)
1811 #define FKCONSTR_ACTION_NOACTION 'a'
1812 #define FKCONSTR_ACTION_RESTRICT 'r'
1813 #define FKCONSTR_ACTION_CASCADE 'c'
1814 #define FKCONSTR_ACTION_SETNULL 'n'
1815 #define FKCONSTR_ACTION_SETDEFAULT 'd'
1818 #define FKCONSTR_MATCH_FULL 'f'
1819 #define FKCONSTR_MATCH_PARTIAL 'p'
1820 #define FKCONSTR_MATCH_SIMPLE 's'
2264 #define OPCLASS_ITEM_OPERATOR 1
2265 #define OPCLASS_ITEM_FUNCTION 2
2266 #define OPCLASS_ITEM_STORAGETYPE 3
2369 #define CURSOR_OPT_BINARY 0x0001
2370 #define CURSOR_OPT_SCROLL 0x0002
2371 #define CURSOR_OPT_NO_SCROLL 0x0004
2372 #define CURSOR_OPT_INSENSITIVE 0x0008
2373 #define CURSOR_OPT_HOLD 0x0010
2375 #define CURSOR_OPT_FAST_PLAN 0x0020
2376 #define CURSOR_OPT_GENERIC_PLAN 0x0040
2377 #define CURSOR_OPT_CUSTOM_PLAN 0x0080
2378 #define CURSOR_OPT_PARALLEL_OK 0x0100
2413 #define FETCH_ALL LONG_MAX
2945 #define REINDEXOPT_VERBOSE 1 << 0
struct CreateFdwStmt CreateFdwStmt
struct FetchStmt FetchStmt
struct AlterDatabaseSetStmt AlterDatabaseSetStmt
struct DropTableSpaceStmt DropTableSpaceStmt
struct CreateSchemaStmt CreateSchemaStmt
struct CreateForeignTableStmt CreateForeignTableStmt
struct TableLikeClause TableLikeClause
char * new_tablespacename
struct CreateExtensionStmt CreateExtensionStmt
struct WindowDef WindowDef
struct DeclareCursorStmt DeclareCursorStmt
struct VacuumStmt VacuumStmt
struct AlterDomainStmt AlterDomainStmt
struct CreateCastStmt CreateCastStmt
OnConflictExpr * onConflict
struct A_Indices A_Indices
struct AlterExtensionContentsStmt AlterExtensionContentsStmt
struct AlterObjectSchemaStmt AlterObjectSchemaStmt
struct ColumnDef ColumnDef
struct VariableShowStmt VariableShowStmt
struct WithCheckOption WithCheckOption
struct CompositeTypeStmt CompositeTypeStmt
struct DropUserMappingStmt DropUserMappingStmt
struct CreateRoleStmt CreateRoleStmt
struct A_Indirection A_Indirection
struct DeallocateStmt DeallocateStmt
struct InferClause InferClause
struct GrantRoleStmt GrantRoleStmt
struct AlterRoleSetStmt AlterRoleSetStmt
struct CommonTableExpr CommonTableExpr
struct WindowClause WindowClause
struct AlterForeignServerStmt AlterForeignServerStmt
struct AccessPriv AccessPriv
struct FuncWithArgs FuncWithArgs
struct CreateStmt CreateStmt
struct RangeTableSample RangeTableSample
struct RenameStmt RenameStmt
struct AlterOpFamilyStmt AlterOpFamilyStmt
struct SetOperationStmt SetOperationStmt
struct CreateDomainStmt CreateDomainStmt
struct TransactionStmt TransactionStmt
struct PrepareStmt PrepareStmt
struct LockingClause LockingClause
struct RangeFunction RangeFunction
LockClauseStrength strength
OnConflictClause * onConflictClause
struct TruncateStmt TruncateStmt
struct CreatePLangStmt CreatePLangStmt
VariableSetStmt * setstmt
struct CreateEventTrigStmt CreateEventTrigStmt
struct SelectStmt SelectStmt
struct ListenStmt ListenStmt
struct AlterEventTrigStmt AlterEventTrigStmt
struct ClusterStmt ClusterStmt
struct DropOwnedStmt DropOwnedStmt
struct CreatedbStmt CreatedbStmt
struct ColumnRef ColumnRef
struct AlterTSConfigurationStmt AlterTSConfigurationStmt
struct AlterEnumStmt AlterEnumStmt
CollateClause * collClause
struct CreateTableSpaceStmt CreateTableSpaceStmt
SortByNulls nulls_ordering
struct OnConflictClause OnConflictClause
struct FunctionParameter FunctionParameter
struct UpdateStmt UpdateStmt
struct CreateFunctionStmt CreateFunctionStmt
struct A_ArrayExpr A_ArrayExpr
struct CreateTransformStmt CreateTransformStmt
struct CreateForeignServerStmt CreateForeignServerStmt
struct AlterFdwStmt AlterFdwStmt
struct IndexStmt IndexStmt
VariableSetStmt * setstmt
struct ImportForeignSchemaStmt ImportForeignSchemaStmt
struct AlterTableSpaceOptionsStmt AlterTableSpaceOptionsStmt
struct ExecuteStmt ExecuteStmt
struct AlterTableCmd AlterTableCmd
struct RangeTblFunction RangeTblFunction
struct VariableSetStmt VariableSetStmt
struct ClosePortalStmt ClosePortalStmt
struct AlterExtensionStmt AlterExtensionStmt
LockClauseStrength strength
struct DropRoleStmt DropRoleStmt
struct CreateEnumStmt CreateEnumStmt
struct AlterTableMoveAllStmt AlterTableMoveAllStmt
struct SecLabelStmt SecLabelStmt
struct CreateOpFamilyStmt CreateOpFamilyStmt
struct SortGroupClause SortGroupClause
struct Constraint Constraint
struct ReplicaIdentityStmt ReplicaIdentityStmt
struct CheckPointStmt CheckPointStmt
struct AlterTSDictionaryStmt AlterTSDictionaryStmt
struct ReindexStmt ReindexStmt
struct NotifyStmt NotifyStmt
struct XmlSerialize XmlSerialize
struct RowMarkClause RowMarkClause
struct AlterSystemStmt AlterSystemStmt
struct ReassignOwnedStmt ReassignOwnedStmt
struct RangeTblEntry RangeTblEntry
VariableSetStmt * setstmt
struct MultiAssignRef MultiAssignRef
struct AlterPolicyStmt AlterPolicyStmt
struct CreateRangeStmt CreateRangeStmt
struct AlterObjectDependsStmt AlterObjectDependsStmt
struct IndexElem IndexElem
struct ResTarget ResTarget
struct DeleteStmt DeleteStmt
struct AlterRoleStmt AlterRoleStmt
struct RangeSubselect RangeSubselect
struct CommentStmt CommentStmt
struct GrantStmt GrantStmt
struct AlterOperatorStmt AlterOperatorStmt
struct AlterSeqStmt AlterSeqStmt
struct WithClause WithClause
LockWaitPolicy waitPolicy
CollateClause * collClause
struct CreateOpClassStmt CreateOpClassStmt
struct TableSampleClause TableSampleClause
char * orig_tablespacename
struct CreatePolicyStmt CreatePolicyStmt
struct CreateConversionStmt CreateConversionStmt
struct InlineCodeBlock InlineCodeBlock
struct UnlistenStmt UnlistenStmt
struct AlterTableStmt AlterTableStmt
struct AlterFunctionStmt AlterFunctionStmt
struct CollateClause CollateClause
struct CreateOpClassItem CreateOpClassItem
struct AlterOwnerStmt AlterOwnerStmt
struct DiscardStmt DiscardStmt
struct InsertStmt InsertStmt
struct AlterDefaultPrivilegesStmt AlterDefaultPrivilegesStmt
ViewCheckOption withCheckOption
struct AlterDatabaseStmt AlterDatabaseStmt
struct CreateTrigStmt CreateTrigStmt
FunctionParameterMode mode
struct ExplainStmt ExplainStmt
struct CreateTableAsStmt CreateTableAsStmt
struct RefreshMatViewStmt RefreshMatViewStmt
struct CreateAmStmt CreateAmStmt
struct AlterUserMappingStmt AlterUserMappingStmt
struct CreateUserMappingStmt CreateUserMappingStmt
struct DropdbStmt DropdbStmt
struct TableSampleClause * tablesample
LockWaitPolicy waitPolicy
struct GroupingSet GroupingSet
struct CreateSeqStmt CreateSeqStmt
struct DefineStmt DefineStmt
struct ConstraintsSetStmt ConstraintsSetStmt
ImportForeignSchemaType list_type