# `pglast.enums.parsenodes` — Constants extracted from parsenodes.h

class pglast.enums.parsenodes.A_Expr_Kind

  Corresponds to the A_Expr_Kind enum.

  AEXPR_OP
  AEXPR_OP_ANY
  AEXPR_OP_ALL
  AEXPR_DISTINCT
  AEXPR_NOT_DISTINCT
  AEXPR_NULLIF
  AEXPR_IN
  AEXPR_LIKE
  AEXPR_ILIKE
  AEXPR_SIMILAR
  AEXPR_BETWEEN
  AEXPR_NOT_BETWEEN
  AEXPR_BETWEEN_SYM
  AEXPR_NOT_BETWEEN_SYM

class pglast.enums.parsenodes.AlterPublicationAction

  Corresponds to the AlterPublicationAction enum.

  AP_AddObjects
  AP_DropObjects
  AP_SetObjects

class pglast.enums.parsenodes.AlterSubscriptionType

  Corresponds to the AlterSubscriptionType enum.

  ALTER_SUBSCRIPTION_OPTIONS
  ALTER_SUBSCRIPTION_CONNECTION
  ALTER_SUBSCRIPTION_SET_PUBLICATION
  ALTER_SUBSCRIPTION_ADD_PUBLICATION
  ALTER_SUBSCRIPTION_DROP_PUBLICATION
  ALTER_SUBSCRIPTION_REFRESH
  ALTER_SUBSCRIPTION_ENABLED
  ALTER_SUBSCRIPTION_SKIP

class pglast.enums.parsenodes.AlterTSConfigType

  Corresponds to the AlterTSConfigType enum.

  ALTER_TSCONFIG_ADD_MAPPING
  ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN
  ALTER_TSCONFIG_REPLACE_DICT
  ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN
  ALTER_TSCONFIG_DROP_MAPPING

class pglast.enums.parsenodes.AlterTableType

  Corresponds to the AlterTableType enum.

  AT_AddColumn
  AT_AddColumnToView
  AT_ColumnDefault
  AT_CookedColumnDefault
  AT_DropNotNull
  AT_SetNotNull
  AT_SetExpression
  AT_DropExpression
  AT_CheckNotNull
  AT_SetStatistics
  AT_SetOptions
  AT_ResetOptions
  AT_SetStorage
  AT_SetCompression
  AT_DropColumn
  AT_AddIndex
  AT_ReAddIndex
  AT_AddConstraint
  AT_ReAddConstraint
  AT_ReAddDomainConstraint
  AT_AlterConstraint
  AT_ValidateConstraint
  AT_AddIndexConstraint
  AT_DropConstraint
  AT_ReAddComment
  AT_AlterColumnType
  AT_AlterColumnGenericOptions
  AT_ChangeOwner
  AT_ClusterOn
  AT_DropCluster
  AT_SetLogged
  AT_SetUnLogged
  AT_DropOids
  AT_SetAccessMethod
  AT_SetTableSpace
  AT_SetRelOptions
  AT_ResetRelOptions
  AT_ReplaceRelOptions
  AT_EnableTrig
  AT_EnableAlwaysTrig
  AT_EnableReplicaTrig
  AT_DisableTrig
  AT_EnableTrigAll
  AT_DisableTrigAll
  AT_EnableTrigUser
  AT_DisableTrigUser
  AT_EnableRule
  AT_EnableAlwaysRule
  AT_EnableReplicaRule
  AT_DisableRule
  AT_AddInherit
  AT_DropInherit
  AT_AddOf
  AT_DropOf
  AT_ReplicaIdentity
  AT_EnableRowSecurity
  AT_DisableRowSecurity
  AT_ForceRowSecurity
  AT_NoForceRowSecurity
  AT_GenericOptions
  AT_AttachPartition
  AT_DetachPartition
  AT_DetachPartitionFinalize
  AT_AddIdentity
  AT_SetIdentity
  AT_DropIdentity
  AT_ReAddStatistics

class pglast.enums.parsenodes.CTEMaterialize

  Corresponds to the CTEMaterialize enum.

  CTEMaterializeDefault
  CTEMaterializeAlways
  CTEMaterializeNever

class pglast.enums.parsenodes.ConstrType

  Corresponds to the ConstrType enum.

  CONSTR_NULL
  CONSTR_NOTNULL
  CONSTR_DEFAULT
  CONSTR_IDENTITY
  CONSTR_GENERATED
  CONSTR_CHECK
  CONSTR_PRIMARY
  CONSTR_UNIQUE
  CONSTR_EXCLUSION
  CONSTR_FOREIGN
  CONSTR_ATTR_DEFERRABLE
  CONSTR_ATTR_NOT_DEFERRABLE
  CONSTR_ATTR_DEFERRED
  CONSTR_ATTR_IMMEDIATE

class pglast.enums.parsenodes.DefElemAction

  Corresponds to the DefElemAction enum.

  DEFELEM_UNSPEC
  DEFELEM_SET
  DEFELEM_ADD
  DEFELEM_DROP

class pglast.enums.parsenodes.DiscardMode

  Corresponds to the DiscardMode enum.

  DISCARD_ALL
  DISCARD_PLANS
  DISCARD_SEQUENCES
  DISCARD_TEMP

class pglast.enums.parsenodes.DropBehavior

  Corresponds to the DropBehavior enum.

  DROP_RESTRICT
  DROP_CASCADE

class pglast.enums.parsenodes.FetchDirection

  Corresponds to the FetchDirection enum.

  FETCH_FORWARD
  FETCH_BACKWARD
  FETCH_ABSOLUTE
  FETCH_RELATIVE

class pglast.enums.parsenodes.FunctionParameterMode

  Corresponds to the FunctionParameterMode enum.

  FUNC_PARAM_IN
  FUNC_PARAM_OUT
  FUNC_PARAM_INOUT
  FUNC_PARAM_VARIADIC
  FUNC_PARAM_TABLE
  FUNC_PARAM_DEFAULT

class pglast.enums.parsenodes.GrantTargetType

  Corresponds to the GrantTargetType enum.

  ACL_TARGET_OBJECT
  ACL_TARGET_ALL_IN_SCHEMA
  ACL_TARGET_DEFAULTS

class pglast.enums.parsenodes.GroupingSetKind

  Corresponds to the GroupingSetKind enum.

  GROUPING_SET_EMPTY
  GROUPING_SET_SIMPLE
  GROUPING_SET_ROLLUP
  GROUPING_SET_CUBE
  GROUPING_SET_SETS

class pglast.enums.parsenodes.ImportForeignSchemaType

  Corresponds to the ImportForeignSchemaType enum.

  FDW_IMPORT_SCHEMA_ALL
  FDW_IMPORT_SCHEMA_LIMIT_TO
  FDW_IMPORT_SCHEMA_EXCEPT

class pglast.enums.parsenodes.JsonQuotes

  Corresponds to the JsonQuotes enum.

  JS_QUOTES_UNSPEC
  JS_QUOTES_KEEP
  JS_QUOTES_OMIT

class pglast.enums.parsenodes.JsonTableColumnType

  Corresponds to the JsonTableColumnType enum.

  JTC_FOR_ORDINALITY
  JTC_REGULAR
  JTC_EXISTS
  JTC_FORMATTED
  JTC_NESTED

class pglast.enums.parsenodes.ObjectType

  Corresponds to the ObjectType enum.

  OBJECT_ACCESS_METHOD
  OBJECT_AGGREGATE
  OBJECT_AMOP
  OBJECT_AMPROC
  OBJECT_ATTRIBUTE
  OBJECT_CAST
  OBJECT_COLUMN
  OBJECT_COLLATION
  OBJECT_CONVERSION
  OBJECT_DATABASE
  OBJECT_DEFAULT
  OBJECT_DEFACL
  OBJECT_DOMAIN
  OBJECT_DOMCONSTRAINT
  OBJECT_EVENT_TRIGGER
  OBJECT_EXTENSION
  OBJECT_FDW
  OBJECT_FOREIGN_SERVER
  OBJECT_FOREIGN_TABLE
  OBJECT_FUNCTION
  OBJECT_INDEX
  OBJECT_LANGUAGE
  OBJECT_LARGEOBJECT
  OBJECT_MATVIEW
  OBJECT_OPCLASS
  OBJECT_OPERATOR
  OBJECT_OPFAMILY
  OBJECT_PARAMETER_ACL
  OBJECT_POLICY
  OBJECT_PROCEDURE
  OBJECT_PUBLICATION
  OBJECT_PUBLICATION_NAMESPACE
  OBJECT_PUBLICATION_REL
  OBJECT_ROLE
  OBJECT_ROUTINE
  OBJECT_RULE
  OBJECT_SCHEMA
  OBJECT_SEQUENCE
  OBJECT_SUBSCRIPTION
  OBJECT_STATISTIC_EXT
  OBJECT_TABCONSTRAINT
  OBJECT_TABLE
  OBJECT_TABLESPACE
  OBJECT_TRANSFORM
  OBJECT_TRIGGER
  OBJECT_TSCONFIGURATION
  OBJECT_TSDICTIONARY
  OBJECT_TSPARSER
  OBJECT_TSTEMPLATE
  OBJECT_TYPE
  OBJECT_USER_MAPPING
  OBJECT_VIEW

class pglast.enums.parsenodes.PartitionRangeDatumKind

  Corresponds to the PartitionRangeDatumKind enum.

  PARTITION_RANGE_DATUM_MINVALUE
  PARTITION_RANGE_DATUM_VALUE
  PARTITION_RANGE_DATUM_MAXVALUE

class pglast.enums.parsenodes.PartitionStrategy

  Corresponds to the PartitionStrategy enum.

  PARTITION_STRATEGY_LIST
  PARTITION_STRATEGY_RANGE
  PARTITION_STRATEGY_HASH

class pglast.enums.parsenodes.PublicationObjSpecType

  Corresponds to the PublicationObjSpecType enum.

  PUBLICATIONOBJ_TABLE
  PUBLICATIONOBJ_TABLES_IN_SCHEMA
  PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA
  PUBLICATIONOBJ_CONTINUATION

class pglast.enums.parsenodes.QuerySource

  Corresponds to the QuerySource enum.

  QSRC_ORIGINAL
  QSRC_PARSER
  QSRC_INSTEAD_RULE
  QSRC_QUAL_INSTEAD_RULE
  QSRC_NON_INSTEAD_RULE

class pglast.enums.parsenodes.RTEKind

  Corresponds to the RTEKind enum.

  RTE_RELATION
  RTE_SUBQUERY
  RTE_JOIN
  RTE_FUNCTION
  RTE_TABLEFUNC
  RTE_VALUES
  RTE_CTE
  RTE_NAMEDTUPLESTORE
  RTE_RESULT

class pglast.enums.parsenodes.ReindexObjectType

  Corresponds to the ReindexObjectType enum.

  REINDEX_OBJECT_INDEX
  REINDEX_OBJECT_TABLE
  REINDEX_OBJECT_SCHEMA
  REINDEX_OBJECT_SYSTEM
  REINDEX_OBJECT_DATABASE

class pglast.enums.parsenodes.RoleSpecType

  Corresponds to the RoleSpecType enum.

  ROLESPEC_CSTRING
  ROLESPEC_CURRENT_ROLE
  ROLESPEC_CURRENT_USER
  ROLESPEC_SESSION_USER
  ROLESPEC_PUBLIC

class pglast.enums.parsenodes.RoleStmtType

  Corresponds to the RoleStmtType enum.

  ROLESTMT_ROLE
  ROLESTMT_USER
  ROLESTMT_GROUP

class pglast.enums.parsenodes.SetOperation

  Corresponds to the SetOperation enum.

  SETOP_NONE
  SETOP_UNION
  SETOP_INTERSECT
  SETOP_EXCEPT

class pglast.enums.parsenodes.SetQuantifier

  Corresponds to the SetQuantifier enum.

  SET_QUANTIFIER_DEFAULT
  SET_QUANTIFIER_ALL
  SET_QUANTIFIER_DISTINCT

class pglast.enums.parsenodes.SortByDir

  Corresponds to the SortByDir enum.

  SORTBY_DEFAULT
  SORTBY_ASC
  SORTBY_DESC
  SORTBY_USING

class pglast.enums.parsenodes.SortByNulls

  Corresponds to the SortByNulls enum.

  SORTBY_NULLS_DEFAULT
  SORTBY_NULLS_FIRST
  SORTBY_NULLS_LAST

class pglast.enums.parsenodes.TableLikeOption

  Corresponds to the TableLikeOption enum.

  CREATE_TABLE_LIKE_COMMENTS
  CREATE_TABLE_LIKE_COMPRESSION
  CREATE_TABLE_LIKE_CONSTRAINTS
  CREATE_TABLE_LIKE_DEFAULTS
  CREATE_TABLE_LIKE_GENERATED
  CREATE_TABLE_LIKE_IDENTITY
  CREATE_TABLE_LIKE_INDEXES
  CREATE_TABLE_LIKE_STATISTICS
  CREATE_TABLE_LIKE_STORAGE
  CREATE_TABLE_LIKE_ALL

class pglast.enums.parsenodes.TransactionStmtKind

  Corresponds to the TransactionStmtKind enum.

  TRANS_STMT_BEGIN
  TRANS_STMT_START
  TRANS_STMT_COMMIT
  TRANS_STMT_ROLLBACK
  TRANS_STMT_SAVEPOINT
  TRANS_STMT_RELEASE
  TRANS_STMT_ROLLBACK_TO
  TRANS_STMT_PREPARE
  TRANS_STMT_COMMIT_PREPARED
  TRANS_STMT_ROLLBACK_PREPARED

class pglast.enums.parsenodes.VariableSetKind

  Corresponds to the VariableSetKind enum.

  VAR_SET_VALUE
  VAR_SET_DEFAULT
  VAR_SET_CURRENT
  VAR_SET_MULTI
  VAR_RESET
  VAR_RESET_ALL

class pglast.enums.parsenodes.ViewCheckOption

  Corresponds to the ViewCheckOption enum.

  NO_CHECK_OPTION
  LOCAL_CHECK_OPTION
  CASCADED_CHECK_OPTION

class pglast.enums.parsenodes.WCOKind

  Corresponds to the WCOKind enum.

  WCO_VIEW_CHECK
  WCO_RLS_INSERT_CHECK
  WCO_RLS_UPDATE_CHECK
  WCO_RLS_CONFLICT_CHECK
  WCO_RLS_MERGE_UPDATE_CHECK
  WCO_RLS_MERGE_DELETE_CHECK

pglast.enums.parsenodes.ACL_INSERT

  See here for details.

pglast.enums.parsenodes.ACL_SELECT

  See here for details.

pglast.enums.parsenodes.ACL_UPDATE

  See here for details.

pglast.enums.parsenodes.ACL_DELETE

  See here for details.

pglast.enums.parsenodes.ACL_TRUNCATE

  See here for details.

pglast.enums.parsenodes.ACL_REFERENCES

  See here for details.

pglast.enums.parsenodes.ACL_TRIGGER

  See here for details.

pglast.enums.parsenodes.ACL_EXECUTE

  See here for details.

pglast.enums.parsenodes.ACL_USAGE

  See here for details.

pglast.enums.parsenodes.ACL_CREATE

  See here for details.

pglast.enums.parsenodes.ACL_CREATE_TEMP

  See here for details.

pglast.enums.parsenodes.ACL_CONNECT

  See here for details.

pglast.enums.parsenodes.ACL_SET

  See here for details.

pglast.enums.parsenodes.ACL_ALTER_SYSTEM

  See here for details.

pglast.enums.parsenodes.ACL_MAINTAIN

  See here for details.

pglast.enums.parsenodes.N_ACL_RIGHTS

  See here for details.

pglast.enums.parsenodes.ACL_NO_RIGHTS

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_NONDEFAULT

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_RANGE

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_ROWS

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_GROUPS

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_BETWEEN

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_START_UNBOUNDED_PRECEDING

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_END_UNBOUNDED_PRECEDING

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_START_UNBOUNDED_FOLLOWING

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_END_UNBOUNDED_FOLLOWING

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_START_CURRENT_ROW

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_END_CURRENT_ROW

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_START_OFFSET_PRECEDING

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_END_OFFSET_PRECEDING

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_START_OFFSET_FOLLOWING

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_END_OFFSET_FOLLOWING

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_EXCLUDE_CURRENT_ROW

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_EXCLUDE_GROUP

  See here for details.

pglast.enums.parsenodes.FRAMEOPTION_EXCLUDE_TIES

  See here for details.

pglast.enums.parsenodes.FKCONSTR_ACTION_NOACTION

  See here for details.

pglast.enums.parsenodes.FKCONSTR_ACTION_RESTRICT

  See here for details.

pglast.enums.parsenodes.FKCONSTR_ACTION_CASCADE

  See here for details.

pglast.enums.parsenodes.FKCONSTR_ACTION_SETNULL

  See here for details.

pglast.enums.parsenodes.FKCONSTR_ACTION_SETDEFAULT

  See here for details.

pglast.enums.parsenodes.FKCONSTR_MATCH_FULL

  See here for details.

pglast.enums.parsenodes.FKCONSTR_MATCH_PARTIAL

  See here for details.

pglast.enums.parsenodes.FKCONSTR_MATCH_SIMPLE

  See here for details.

pglast.enums.parsenodes.OPCLASS_ITEM_OPERATOR

  See here for details.

pglast.enums.parsenodes.OPCLASS_ITEM_FUNCTION

  See here for details.

pglast.enums.parsenodes.OPCLASS_ITEM_STORAGETYPE

  See here for details.

pglast.enums.parsenodes.CURSOR_OPT_BINARY

  See here for details.

pglast.enums.parsenodes.CURSOR_OPT_SCROLL

  See here for details.

pglast.enums.parsenodes.CURSOR_OPT_NO_SCROLL

  See here for details.

pglast.enums.parsenodes.CURSOR_OPT_INSENSITIVE

  See here for details.

pglast.enums.parsenodes.CURSOR_OPT_ASENSITIVE

  See here for details.

pglast.enums.parsenodes.CURSOR_OPT_HOLD

  See here for details.

pglast.enums.parsenodes.CURSOR_OPT_FAST_PLAN

  See here for details.

pglast.enums.parsenodes.CURSOR_OPT_GENERIC_PLAN

  See here for details.

pglast.enums.parsenodes.CURSOR_OPT_CUSTOM_PLAN

  See here for details.

pglast.enums.parsenodes.CURSOR_OPT_PARALLEL_OK

  See here for details.