PostgreSQL 17
18 17
Grammar changes
Tokens
Source: src/backend/parser/gram.y @ REL_17_0 (d7ec59a) / bison_report bison (GNU Bison) 3.8.2 / 2024-09-23
These diagrams describe a parser grammar, rather than the complete language specification. Lexer state and semantic checks may impose additional restrictions.
PostgreSQL License
Start wrapper
Unreachable
BNF $accept ::= parse_toplevel $end
Used by (0)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
$end
BNF parse_toplevel ::= stmtmulti
| MODE_TYPE_NAME Typename
| MODE_PLPGSQL_EXPR PLpgSQL_Expr
| MODE_PLPGSQL_ASSIGN1 PLAssignStmt
| MODE_PLPGSQL_ASSIGN2 PLAssignStmt
| MODE_PLPGSQL_ASSIGN3 PLAssignStmt
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › stmtmulti
BNF stmtmulti ::= stmtmulti ';' toplevel_stmt
| toplevel_stmt
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › stmtmulti › toplevel_stmt
BNF toplevel_stmt ::= stmt
| TransactionStmtLegacy
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › stmtmulti › toplevel_stmt › stmt
BNF stmt ::= AlterEventTrigStmt
| AlterCollationStmt
| AlterDatabaseStmt
| AlterDatabaseSetStmt
| AlterDefaultPrivilegesStmt
| AlterDomainStmt
| AlterEnumStmt
| AlterExtensionStmt
| AlterExtensionContentsStmt
| AlterFdwStmt
| AlterForeignServerStmt
| AlterFunctionStmt
| AlterGroupStmt
| AlterObjectDependsStmt
| AlterObjectSchemaStmt
| AlterOwnerStmt
| AlterOperatorStmt
| AlterTypeStmt
| AlterPolicyStmt
| AlterSeqStmt
| AlterSystemStmt
| AlterTableStmt
| AlterTblSpcStmt
| AlterCompositeTypeStmt
| AlterPublicationStmt
| AlterRoleSetStmt
| AlterRoleStmt
| AlterSubscriptionStmt
| AlterStatsStmt
| AlterTSConfigurationStmt
| AlterTSDictionaryStmt
| AlterUserMappingStmt
| AnalyzeStmt
| CallStmt
| CheckPointStmt
| ClosePortalStmt
| ClusterStmt
| CommentStmt
| ConstraintsSetStmt
| CopyStmt
| CreateAmStmt
| CreateAsStmt
| CreateAssertionStmt
| CreateCastStmt
| CreateConversionStmt
| CreateDomainStmt
| CreateExtensionStmt
| CreateFdwStmt
| CreateForeignServerStmt
| CreateForeignTableStmt
| CreateFunctionStmt
| CreateGroupStmt
| CreateMatViewStmt
| CreateOpClassStmt
| CreateOpFamilyStmt
| CreatePublicationStmt
| AlterOpFamilyStmt
| CreatePolicyStmt
| CreatePLangStmt
| CreateSchemaStmt
| CreateSeqStmt
| CreateStmt
| CreateSubscriptionStmt
| CreateStatsStmt
| CreateTableSpaceStmt
| CreateTransformStmt
| CreateTrigStmt
| CreateEventTrigStmt
| CreateRoleStmt
| CreateUserStmt
| CreateUserMappingStmt
| CreatedbStmt
| DeallocateStmt
| DeclareCursorStmt
| DefineStmt
| DeleteStmt
| DiscardStmt
| DoStmt
| DropCastStmt
| DropOpClassStmt
| DropOpFamilyStmt
| DropOwnedStmt
| DropStmt
| DropSubscriptionStmt
| DropTableSpaceStmt
| DropTransformStmt
| DropRoleStmt
| DropUserMappingStmt
| DropdbStmt
| ExecuteStmt
| ExplainStmt
| FetchStmt
| GrantStmt
| GrantRoleStmt
| ImportForeignSchemaStmt
| IndexStmt
| InsertStmt
| ListenStmt
| RefreshMatViewStmt
| LoadStmt
| LockStmt
| MergeStmt
| NotifyStmt
| PrepareStmt
| ReassignOwnedStmt
| ReindexStmt
| RemoveAggrStmt
| RemoveFuncStmt
| RemoveOperStmt
| RenameStmt
| RevokeStmt
| RevokeRoleStmt
| RuleStmt
| SecLabelStmt
| SelectStmt
| TransactionStmt
| TruncateStmt
| UnlistenStmt
| UpdateStmt
| VacuumStmt
| VariableResetStmt
| VariableSetStmt
| VariableShowStmt
| ViewStmt
| ε
Used by (2)
References (124)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CallStmt
BNF CallStmt ::= CALL func_application
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
call IDENT ( )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateRoleStmt
BNF CreateRoleStmt ::= CREATE ROLE RoleId opt_with OptRoleList
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create role current_role
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterRoleStmt › AlterOptRoleList › AlterOptRoleElem
BNF AlterOptRoleElem ::= PASSWORD Sconst
| PASSWORD NULL_P
| ENCRYPTED PASSWORD Sconst
| UNENCRYPTED PASSWORD Sconst
| INHERIT
| CONNECTION LIMIT SignedIconst
| VALID UNTIL Sconst
| USER role_list
| IDENT
Used by (2)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
inherit
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateUserStmt
BNF CreateUserStmt ::= CREATE USER RoleId opt_with OptRoleList
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create user current_role
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterRoleStmt
BNF AlterRoleStmt ::= ALTER ROLE RoleSpec opt_with AlterOptRoleList
| ALTER USER RoleSpec opt_with AlterOptRoleList
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter role current_role
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterRoleSetStmt
BNF AlterRoleSetStmt ::= ALTER ROLE RoleSpec opt_in_database SetResetClause
| ALTER ROLE ALL opt_in_database SetResetClause
| ALTER USER RoleSpec opt_in_database SetResetClause
| ALTER USER ALL opt_in_database SetResetClause
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter role current_role set names
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DropRoleStmt
BNF DropRoleStmt ::= DROP ROLE role_list
| DROP ROLE IF_P EXISTS role_list
| DROP USER role_list
| DROP USER IF_P EXISTS role_list
| DROP GROUP_P role_list
| DROP GROUP_P IF_P EXISTS role_list
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
drop role current_role
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateGroupStmt
BNF CreateGroupStmt ::= CREATE GROUP_P RoleId opt_with OptRoleList
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create group current_role
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterGroupStmt
BNF AlterGroupStmt ::= ALTER GROUP_P RoleSpec add_drop USER role_list
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter group current_role add user current_role
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateSchemaStmt
BNF CreateSchemaStmt ::= CREATE SCHEMA opt_single_name AUTHORIZATION RoleSpec OptSchemaEltList
| CREATE SCHEMA ColId OptSchemaEltList
| CREATE SCHEMA IF_P NOT EXISTS opt_single_name AUTHORIZATION RoleSpec OptSchemaEltList
| CREATE SCHEMA IF_P NOT EXISTS ColId OptSchemaEltList
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create schema IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › VariableSetStmt
BNF VariableSetStmt ::= SET set_rest
| SET LOCAL set_rest
| SET SESSION set_rest
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
set names
parse_toplevel › stmtmulti › toplevel_stmt › stmt › VariableSetStmt › set_rest
BNF set_rest ::= TRANSACTION transaction_mode_list
| SESSION CHARACTERISTICS AS TRANSACTION transaction_mode_list
| set_rest_more
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
names
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterSystemStmt › generic_set
BNF generic_set ::= var_name TO var_list
| var_name '=' var_list
| var_name TO DEFAULT
| var_name '=' DEFAULT
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT to default
parse_toplevel › stmtmulti › toplevel_stmt › stmt › VariableSetStmt › set_rest › set_rest_more
BNF set_rest_more ::= generic_set
| var_name FROM CURRENT_P
| TIME ZONE zone_value
| CATALOG_P Sconst
| SCHEMA Sconst
| NAMES opt_encoding
| ROLE NonReservedWord_or_Sconst
| SESSION AUTHORIZATION NonReservedWord_or_Sconst
| SESSION AUTHORIZATION DEFAULT
| XML_P OPTION document_or_content
| TRANSACTION SNAPSHOT Sconst
Used by (2)
References (7)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
names
parse_toplevel › stmtmulti › toplevel_stmt › stmt › VariableResetStmt › reset_rest
BNF reset_rest ::= generic_reset
| TIME ZONE
| TRANSACTION ISOLATION LEVEL
| SESSION AUTHORIZATION
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
all
parse_toplevel › stmtmulti › toplevel_stmt › stmt › VariableShowStmt
BNF VariableShowStmt ::= SHOW var_name
| SHOW TIME ZONE
| SHOW TRANSACTION ISOLATION LEVEL
| SHOW SESSION AUTHORIZATION
| SHOW ALL
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
show all
parse_toplevel › stmtmulti › toplevel_stmt › stmt › ConstraintsSetStmt
BNF ConstraintsSetStmt ::= SET CONSTRAINTS constraints_set_list constraints_set_mode
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
set constraints all deferred
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CheckPointStmt
BNF CheckPointStmt ::= CHECKPOINT
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
checkpoint
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DiscardStmt
BNF DiscardStmt ::= DISCARD ALL
| DISCARD TEMP
| DISCARD TEMPORARY
| DISCARD PLANS
| DISCARD SEQUENCES
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
discard all
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterTableStmt
BNF AlterTableStmt ::= ALTER TABLE relation_expr alter_table_cmds
| ALTER TABLE IF_P EXISTS relation_expr alter_table_cmds
| ALTER TABLE relation_expr partition_cmd
| ALTER TABLE IF_P EXISTS relation_expr partition_cmd
| ALTER TABLE ALL IN_P TABLESPACE name SET TABLESPACE name opt_nowait
| ALTER TABLE ALL IN_P TABLESPACE name OWNED BY role_list SET TABLESPACE name opt_nowait
| ALTER INDEX qualified_name alter_table_cmds
| ALTER INDEX IF_P EXISTS qualified_name alter_table_cmds
| ALTER INDEX qualified_name index_partition_cmd
| ALTER INDEX ALL IN_P TABLESPACE name SET TABLESPACE name opt_nowait
| ALTER INDEX ALL IN_P TABLESPACE name OWNED BY role_list SET TABLESPACE name opt_nowait
| ALTER SEQUENCE qualified_name alter_table_cmds
| ALTER SEQUENCE IF_P EXISTS qualified_name alter_table_cmds
| ALTER VIEW qualified_name alter_table_cmds
| ALTER VIEW IF_P EXISTS qualified_name alter_table_cmds
| ALTER MATERIALIZED VIEW qualified_name alter_table_cmds
| ALTER MATERIALIZED VIEW IF_P EXISTS qualified_name alter_table_cmds
| ALTER MATERIALIZED VIEW ALL IN_P TABLESPACE name SET TABLESPACE name opt_nowait
| ALTER MATERIALIZED VIEW ALL IN_P TABLESPACE name OWNED BY role_list SET TABLESPACE name opt_nowait
| ALTER FOREIGN TABLE relation_expr alter_table_cmds
| ALTER FOREIGN TABLE IF_P EXISTS relation_expr alter_table_cmds
Used by (1)
References (8)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter index IDENT set logged
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterTableStmt › partition_cmd
BNF partition_cmd ::= ATTACH PARTITION qualified_name PartitionBoundSpec
| DETACH PARTITION qualified_name opt_concurrently
| DETACH PARTITION qualified_name FINALIZE
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
detach partition IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterTableStmt › alter_table_cmds › alter_table_cmd
BNF alter_table_cmd ::= ADD_P columnDef
| ADD_P IF_P NOT EXISTS columnDef
| ADD_P COLUMN columnDef
| ADD_P COLUMN IF_P NOT EXISTS columnDef
| ALTER opt_column ColId alter_column_default
| ALTER opt_column ColId DROP NOT NULL_P
| ALTER opt_column ColId SET NOT NULL_P
| ALTER opt_column ColId SET EXPRESSION AS '(' a_expr ')'
| ALTER opt_column ColId DROP EXPRESSION
| ALTER opt_column ColId DROP EXPRESSION IF_P EXISTS
| ALTER opt_column ColId SET STATISTICS set_statistics_value
| ALTER opt_column Iconst SET STATISTICS set_statistics_value
| ALTER opt_column ColId SET reloptions
| ALTER opt_column ColId RESET reloptions
| ALTER opt_column ColId SET column_storage
| ALTER opt_column ColId SET column_compression
| ALTER opt_column ColId ADD_P GENERATED generated_when AS IDENTITY_P OptParenthesizedSeqOptList
| ALTER opt_column ColId alter_identity_column_option_list
| ALTER opt_column ColId DROP IDENTITY_P
| ALTER opt_column ColId DROP IDENTITY_P IF_P EXISTS
| DROP opt_column IF_P EXISTS ColId opt_drop_behavior
| DROP opt_column ColId opt_drop_behavior
| ALTER opt_column ColId opt_set_data TYPE_P Typename opt_collate_clause alter_using
| ALTER opt_column ColId alter_generic_options
| ADD_P TableConstraint
| ALTER CONSTRAINT name ConstraintAttributeSpec
| VALIDATE CONSTRAINT name
| DROP CONSTRAINT IF_P EXISTS name opt_drop_behavior
| DROP CONSTRAINT name opt_drop_behavior
| SET WITHOUT OIDS
| CLUSTER ON name
| SET WITHOUT CLUSTER
| SET LOGGED
| SET UNLOGGED
| ENABLE_P TRIGGER name
| ENABLE_P ALWAYS TRIGGER name
| ENABLE_P REPLICA TRIGGER name
| ENABLE_P TRIGGER ALL
| ENABLE_P TRIGGER USER
| DISABLE_P TRIGGER name
| DISABLE_P TRIGGER ALL
| DISABLE_P TRIGGER USER
| ENABLE_P RULE name
| ENABLE_P ALWAYS RULE name
| ENABLE_P REPLICA RULE name
| DISABLE_P RULE name
| INHERIT qualified_name
| NO INHERIT qualified_name
| OF any_name
| NOT OF
| OWNER TO RoleSpec
| SET ACCESS METHOD set_access_method_name
| SET TABLESPACE name
| SET reloptions
| RESET reloptions
| REPLICA IDENTITY_P replica_identity
| ENABLE_P ROW LEVEL SECURITY
| DISABLE_P ROW LEVEL SECURITY
| FORCE ROW LEVEL SECURITY
| NO FORCE ROW LEVEL SECURITY
| alter_generic_options
Used by (1)
References (27)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
set logged
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateForeignTableStmt › PartitionBoundSpec
BNF PartitionBoundSpec ::= FOR VALUES WITH '(' hash_partbound ')'
| FOR VALUES IN_P '(' expr_list ')'
| FOR VALUES FROM '(' expr_list ')' TO '(' expr_list ')'
| DEFAULT
Used by (3)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
default
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterCompositeTypeStmt
BNF AlterCompositeTypeStmt ::= ALTER TYPE_P any_name alter_type_cmds
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter type IDENT drop attribute IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterCompositeTypeStmt › alter_type_cmds › alter_type_cmd
BNF alter_type_cmd ::= ADD_P ATTRIBUTE TableFuncElement opt_drop_behavior
| DROP ATTRIBUTE IF_P EXISTS ColId opt_drop_behavior
| DROP ATTRIBUTE ColId opt_drop_behavior
| ALTER ATTRIBUTE ColId opt_set_data TYPE_P Typename opt_collate_clause opt_drop_behavior
Used by (1)
References (6)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
drop attribute IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › ClosePortalStmt
BNF ClosePortalStmt ::= CLOSE cursor_name
| CLOSE ALL
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
close all
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CopyStmt
BNF CopyStmt ::= COPY opt_binary qualified_name opt_column_list copy_from opt_program copy_file_name copy_delimiter opt_with copy_options where_clause
| COPY '(' PreparableStmt ')' TO opt_program copy_file_name opt_with copy_options
Used by (1)
References (11)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
copy IDENT from stdin
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CopyStmt › copy_options
BNF copy_options ::= copy_opt_list
| '(' copy_generic_opt_list ')'
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CopyStmt › copy_options › copy_opt_list › copy_opt_item
BNF copy_opt_item ::= BINARY
| FREEZE
| DELIMITER opt_as Sconst
| NULL_P opt_as Sconst
| CSV
| HEADER_P
| QUOTE opt_as Sconst
| ESCAPE opt_as Sconst
| FORCE QUOTE columnList
| FORCE QUOTE '*'
| FORCE NOT NULL_P columnList
| FORCE NOT NULL_P '*'
| FORCE NULL_P columnList
| FORCE NULL_P '*'
| ENCODING Sconst
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
binary
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateStmt
BNF CreateStmt ::= CREATE OptTemp TABLE qualified_name '(' OptTableElementList ')' OptInherit OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace
| CREATE OptTemp TABLE IF_P NOT EXISTS qualified_name '(' OptTableElementList ')' OptInherit OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace
| CREATE OptTemp TABLE qualified_name OF any_name OptTypedTableElementList OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace
| CREATE OptTemp TABLE IF_P NOT EXISTS qualified_name OF any_name OptTypedTableElementList OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace
| CREATE OptTemp TABLE qualified_name PARTITION OF qualified_name OptTypedTableElementList PartitionBoundSpec OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace
| CREATE OptTemp TABLE IF_P NOT EXISTS qualified_name PARTITION OF qualified_name OptTypedTableElementList PartitionBoundSpec OptPartitionSpec table_access_method_clause OptWith OnCommitOption OptTableSpace
Used by (2)
References (12)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create table IDENT ( )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateAsStmt › OptTemp
BNF OptTemp ::= TEMPORARY
| TEMP
| LOCAL TEMPORARY
| LOCAL TEMP
| GLOBAL TEMPORARY
| GLOBAL TEMP
| UNLOGGED
| ε
Used by (5)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateDomainStmt › ColQualList › ColConstraint › ColConstraintElem
BNF ColConstraintElem ::= NOT NULL_P
| NULL_P
| UNIQUE opt_unique_null_treatment opt_definition OptConsTableSpace
| PRIMARY KEY opt_definition OptConsTableSpace
| CHECK '(' a_expr ')' opt_no_inherit
| DEFAULT b_expr
| GENERATED generated_when AS IDENTITY_P OptParenthesizedSeqOptList
| GENERATED generated_when AS '(' a_expr ')' STORED
| REFERENCES qualified_name opt_column_list key_match key_actions
Used by (1)
References (12)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
null
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterTableStmt › alter_table_cmds › alter_table_cmd › TableConstraint › ConstraintElem
BNF ConstraintElem ::= CHECK '(' a_expr ')' ConstraintAttributeSpec
| UNIQUE opt_unique_null_treatment '(' columnList ')' opt_c_include opt_definition OptConsTableSpace ConstraintAttributeSpec
| UNIQUE ExistingIndex ConstraintAttributeSpec
| PRIMARY KEY '(' columnList ')' opt_c_include opt_definition OptConsTableSpace ConstraintAttributeSpec
| PRIMARY KEY ExistingIndex ConstraintAttributeSpec
| EXCLUDE access_method_clause '(' ExclusionConstraintList ')' opt_c_include opt_definition OptConsTableSpace OptWhereClause ConstraintAttributeSpec
| FOREIGN KEY '(' columnList ')' REFERENCES qualified_name opt_column_list key_match key_actions ConstraintAttributeSpec
Used by (1)
References (15)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
check ( default )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterDomainStmt › DomainConstraint
BNF DomainConstraint ::= CONSTRAINT name DomainConstraintElem
| DomainConstraintElem
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
not null
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterDomainStmt › DomainConstraint › DomainConstraintElem
BNF DomainConstraintElem ::= CHECK '(' a_expr ')' ConstraintAttributeSpec
| NOT NULL_P ConstraintAttributeSpec
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
not null
parse_toplevel › stmtmulti › toplevel_stmt › stmt › ViewStmt › columnList
BNF columnList ::= columnElem
| columnList ',' columnElem
Used by (10)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateStmt › OptWith
BNF OptWith ::= WITH reloptions
| WITHOUT OIDS
| ε
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateStmt › OnCommitOption
BNF OnCommitOption ::= ON COMMIT DROP
| ON COMMIT DELETE_P ROWS
| ON COMMIT PRESERVE ROWS
| ε
Used by (2)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateStatsStmt
BNF CreateStatsStmt ::= CREATE STATISTICS opt_qualified_name opt_name_list ON stats_params FROM from_list
| CREATE STATISTICS IF_P NOT EXISTS any_name opt_name_list ON stats_params FROM from_list
Used by (1)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create statistics on IDENT from IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterStatsStmt
BNF AlterStatsStmt ::= ALTER STATISTICS any_name SET STATISTICS set_statistics_value
| ALTER STATISTICS IF_P EXISTS any_name SET STATISTICS set_statistics_value
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter statistics IDENT set statistics default
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateAsStmt
BNF CreateAsStmt ::= CREATE OptTemp TABLE create_as_target AS SelectStmt opt_with_data
| CREATE OptTemp TABLE IF_P NOT EXISTS create_as_target AS SelectStmt opt_with_data
Used by (2)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create table IDENT as select
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateAsStmt › create_as_target
BNF create_as_target ::= qualified_name opt_column_list table_access_method_clause OptWith OnCommitOption OptTableSpace
Used by (2)
References (6)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateMatViewStmt
BNF CreateMatViewStmt ::= CREATE OptNoLog MATERIALIZED VIEW create_mv_target AS SelectStmt opt_with_data
| CREATE OptNoLog MATERIALIZED VIEW IF_P NOT EXISTS create_mv_target AS SelectStmt opt_with_data
Used by (2)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create materialized view IDENT as select
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateMatViewStmt › create_mv_target
BNF create_mv_target ::= qualified_name opt_column_list table_access_method_clause opt_reloptions OptTableSpace
Used by (1)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › RefreshMatViewStmt
BNF RefreshMatViewStmt ::= REFRESH MATERIALIZED VIEW opt_concurrently qualified_name opt_with_data
Used by (2)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
refresh materialized view IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateSeqStmt
BNF CreateSeqStmt ::= CREATE OptTemp SEQUENCE qualified_name OptSeqOptList
| CREATE OptTemp SEQUENCE IF_P NOT EXISTS qualified_name OptSeqOptList
Used by (2)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create sequence IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterSeqStmt
BNF AlterSeqStmt ::= ALTER SEQUENCE qualified_name SeqOptList
| ALTER SEQUENCE IF_P EXISTS qualified_name SeqOptList
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter sequence IDENT cycle
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterSeqStmt › SeqOptList › SeqOptElem
BNF SeqOptElem ::= AS SimpleTypename
| CACHE NumericOnly
| CYCLE
| NO CYCLE
| INCREMENT opt_by NumericOnly
| LOGGED
| MAXVALUE NumericOnly
| MINVALUE NumericOnly
| NO MAXVALUE
| NO MINVALUE
| OWNED BY any_name
| SEQUENCE NAME_P any_name
| START opt_with NumericOnly
| RESTART
| RESTART opt_with NumericOnly
| UNLOGGED
Used by (2)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
cycle
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreatePLangStmt
BNF CreatePLangStmt ::= CREATE opt_or_replace opt_trusted opt_procedural LANGUAGE name
| CREATE opt_or_replace opt_trusted opt_procedural LANGUAGE name HANDLER handler_name opt_inline_handler opt_validator
Used by (1)
References (7)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create language IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateTableSpaceStmt
BNF CreateTableSpaceStmt ::= CREATE TABLESPACE name OptTableSpaceOwner LOCATION Sconst opt_reloptions
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create tablespace IDENT location SCONST
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DropTableSpaceStmt
BNF DropTableSpaceStmt ::= DROP TABLESPACE name
| DROP TABLESPACE IF_P EXISTS name
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
drop tablespace IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateExtensionStmt
BNF CreateExtensionStmt ::= CREATE EXTENSION name opt_with create_extension_opt_list
| CREATE EXTENSION IF_P NOT EXISTS name opt_with create_extension_opt_list
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create extension IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterExtensionStmt
BNF AlterExtensionStmt ::= ALTER EXTENSION name UPDATE alter_extension_opt_list
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter extension IDENT update
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterExtensionContentsStmt
BNF AlterExtensionContentsStmt ::= ALTER EXTENSION name add_drop object_type_name name
| ALTER EXTENSION name add_drop object_type_any_name any_name
| ALTER EXTENSION name add_drop AGGREGATE aggregate_with_argtypes
| ALTER EXTENSION name add_drop CAST '(' Typename AS Typename ')'
| ALTER EXTENSION name add_drop DOMAIN_P Typename
| ALTER EXTENSION name add_drop FUNCTION function_with_argtypes
| ALTER EXTENSION name add_drop OPERATOR operator_with_argtypes
| ALTER EXTENSION name add_drop OPERATOR CLASS any_name USING name
| ALTER EXTENSION name add_drop OPERATOR FAMILY any_name USING name
| ALTER EXTENSION name add_drop PROCEDURE function_with_argtypes
| ALTER EXTENSION name add_drop ROUTINE function_with_argtypes
| ALTER EXTENSION name add_drop TRANSFORM FOR Typename LANGUAGE name
| ALTER EXTENSION name add_drop TYPE_P Typename
Used by (1)
References (9)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter extension IDENT add database IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateFdwStmt
BNF CreateFdwStmt ::= CREATE FOREIGN DATA_P WRAPPER name opt_fdw_options create_generic_options
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create foreign data wrapper IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterFdwStmt
BNF AlterFdwStmt ::= ALTER FOREIGN DATA_P WRAPPER name opt_fdw_options alter_generic_options
| ALTER FOREIGN DATA_P WRAPPER name fdw_options
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter foreign data wrapper IDENT no handler
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateForeignServerStmt
BNF CreateForeignServerStmt ::= CREATE SERVER name opt_type opt_foreign_server_version FOREIGN DATA_P WRAPPER name create_generic_options
| CREATE SERVER IF_P NOT EXISTS name opt_type opt_foreign_server_version FOREIGN DATA_P WRAPPER name create_generic_options
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create server IDENT foreign data wrapper IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterForeignServerStmt
BNF AlterForeignServerStmt ::= ALTER SERVER name foreign_server_version alter_generic_options
| ALTER SERVER name foreign_server_version
| ALTER SERVER name alter_generic_options
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter server IDENT version null
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateForeignTableStmt
BNF CreateForeignTableStmt ::= CREATE FOREIGN TABLE qualified_name '(' OptTableElementList ')' OptInherit SERVER name create_generic_options
| CREATE FOREIGN TABLE IF_P NOT EXISTS qualified_name '(' OptTableElementList ')' OptInherit SERVER name create_generic_options
| CREATE FOREIGN TABLE qualified_name PARTITION OF qualified_name OptTypedTableElementList PartitionBoundSpec SERVER name create_generic_options
| CREATE FOREIGN TABLE IF_P NOT EXISTS qualified_name PARTITION OF qualified_name OptTypedTableElementList PartitionBoundSpec SERVER name create_generic_options
Used by (1)
References (7)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create foreign table IDENT ( ) server IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › ImportForeignSchemaStmt
BNF ImportForeignSchemaStmt ::= IMPORT_P FOREIGN SCHEMA name import_qualification FROM SERVER name INTO name create_generic_options
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
import foreign schema IDENT from server IDENT into IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateUserMappingStmt
BNF CreateUserMappingStmt ::= CREATE USER MAPPING FOR auth_ident SERVER name create_generic_options
| CREATE USER MAPPING IF_P NOT EXISTS FOR auth_ident SERVER name create_generic_options
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create user mapping for user server IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DropUserMappingStmt
BNF DropUserMappingStmt ::= DROP USER MAPPING FOR auth_ident SERVER name
| DROP USER MAPPING IF_P EXISTS FOR auth_ident SERVER name
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
drop user mapping for user server IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterUserMappingStmt
BNF AlterUserMappingStmt ::= ALTER USER MAPPING FOR auth_ident SERVER name alter_generic_options
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter user mapping for user server IDENT options ( drop IDENT )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreatePolicyStmt
BNF CreatePolicyStmt ::= CREATE POLICY name ON qualified_name RowSecurityDefaultPermissive RowSecurityDefaultForCmd RowSecurityDefaultToRole RowSecurityOptionalExpr RowSecurityOptionalWithCheck
Used by (1)
References (7)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create policy IDENT on IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterPolicyStmt
BNF AlterPolicyStmt ::= ALTER POLICY name ON qualified_name RowSecurityOptionalToRole RowSecurityOptionalExpr RowSecurityOptionalWithCheck
Used by (1)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter policy IDENT on IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateAmStmt
BNF CreateAmStmt ::= CREATE ACCESS METHOD name TYPE_P am_type HANDLER handler_name
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create access method IDENT type index handler IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateTrigStmt
BNF CreateTrigStmt ::= CREATE opt_or_replace TRIGGER name TriggerActionTime TriggerEvents ON qualified_name TriggerReferencing TriggerForSpec TriggerWhen EXECUTE FUNCTION_or_PROCEDURE func_name '(' TriggerFuncArgs ')'
| CREATE opt_or_replace CONSTRAINT TRIGGER name AFTER TriggerEvents ON qualified_name OptConstrFromTable ConstraintAttributeSpec FOR EACH ROW TriggerWhen EXECUTE FUNCTION_or_PROCEDURE func_name '(' TriggerFuncArgs ')'
Used by (2)
References (13)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create trigger IDENT before insert on IDENT execute function IDENT ( )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateEventTrigStmt
BNF CreateEventTrigStmt ::= CREATE EVENT TRIGGER name ON ColLabel EXECUTE FUNCTION_or_PROCEDURE func_name '(' ')'
| CREATE EVENT TRIGGER name ON ColLabel WHEN event_trigger_when_list EXECUTE FUNCTION_or_PROCEDURE func_name '(' ')'
Used by (1)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create event trigger IDENT on IDENT execute function IDENT ( )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterEventTrigStmt
BNF AlterEventTrigStmt ::= ALTER EVENT TRIGGER name enable_trigger
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter event trigger IDENT enable
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateAssertionStmt
BNF CreateAssertionStmt ::= CREATE ASSERTION any_name CHECK '(' a_expr ')' ConstraintAttributeSpec
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create assertion IDENT check ( default )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DefineStmt
BNF DefineStmt ::= CREATE opt_or_replace AGGREGATE func_name aggr_args definition
| CREATE opt_or_replace AGGREGATE func_name old_aggr_definition
| CREATE OPERATOR any_operator definition
| CREATE TYPE_P any_name definition
| CREATE TYPE_P any_name
| CREATE TYPE_P any_name AS '(' OptTableFuncElementList ')'
| CREATE TYPE_P any_name AS ENUM_P '(' opt_enum_val_list ')'
| CREATE TYPE_P any_name AS RANGE definition
| CREATE TEXT_P SEARCH PARSER any_name definition
| CREATE TEXT_P SEARCH DICTIONARY any_name definition
| CREATE TEXT_P SEARCH TEMPLATE any_name definition
| CREATE TEXT_P SEARCH CONFIGURATION any_name definition
| CREATE COLLATION any_name definition
| CREATE COLLATION IF_P NOT EXISTS any_name definition
| CREATE COLLATION any_name FROM any_name
| CREATE COLLATION IF_P NOT EXISTS any_name FROM any_name
Used by (1)
References (9)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create type IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterEnumStmt
BNF AlterEnumStmt ::= ALTER TYPE_P any_name ADD_P VALUE_P opt_if_not_exists Sconst
| ALTER TYPE_P any_name ADD_P VALUE_P opt_if_not_exists Sconst BEFORE Sconst
| ALTER TYPE_P any_name ADD_P VALUE_P opt_if_not_exists Sconst AFTER Sconst
| ALTER TYPE_P any_name RENAME VALUE_P Sconst TO Sconst
| ALTER TYPE_P any_name DROP VALUE_P Sconst
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter type IDENT add value SCONST
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateOpClassStmt
BNF CreateOpClassStmt ::= CREATE OPERATOR CLASS any_name opt_default FOR TYPE_P Typename USING name opt_opfamily AS opclass_item_list
Used by (1)
References (6)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create operator class IDENT for type int using IDENT as storage int
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateOpClassStmt › opclass_item_list › opclass_item
BNF opclass_item ::= OPERATOR Iconst any_operator opclass_purpose opt_recheck
| OPERATOR Iconst operator_with_argtypes opclass_purpose opt_recheck
| FUNCTION Iconst function_with_argtypes
| FUNCTION Iconst '(' type_list ')' function_with_argtypes
| STORAGE Typename
Used by (1)
References (8)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
storage int
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateOpFamilyStmt
BNF CreateOpFamilyStmt ::= CREATE OPERATOR FAMILY any_name USING name
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create operator family IDENT using IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterOpFamilyStmt
BNF AlterOpFamilyStmt ::= ALTER OPERATOR FAMILY any_name USING name ADD_P opclass_item_list
| ALTER OPERATOR FAMILY any_name USING name DROP opclass_drop_list
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter operator family IDENT using IDENT add storage int
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DropOpClassStmt
BNF DropOpClassStmt ::= DROP OPERATOR CLASS any_name USING name opt_drop_behavior
| DROP OPERATOR CLASS IF_P EXISTS any_name USING name opt_drop_behavior
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
drop operator class IDENT using IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DropOpFamilyStmt
BNF DropOpFamilyStmt ::= DROP OPERATOR FAMILY any_name USING name opt_drop_behavior
| DROP OPERATOR FAMILY IF_P EXISTS any_name USING name opt_drop_behavior
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
drop operator family IDENT using IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DropOwnedStmt
BNF DropOwnedStmt ::= DROP OWNED BY role_list opt_drop_behavior
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
drop owned by current_role
parse_toplevel › stmtmulti › toplevel_stmt › stmt › ReassignOwnedStmt
BNF ReassignOwnedStmt ::= REASSIGN OWNED BY role_list TO RoleSpec
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
reassign owned by current_role to current_role
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DropStmt
BNF DropStmt ::= DROP object_type_any_name IF_P EXISTS any_name_list opt_drop_behavior
| DROP object_type_any_name any_name_list opt_drop_behavior
| DROP drop_type_name IF_P EXISTS name_list opt_drop_behavior
| DROP drop_type_name name_list opt_drop_behavior
| DROP object_type_name_on_any_name name ON any_name opt_drop_behavior
| DROP object_type_name_on_any_name IF_P EXISTS name ON any_name opt_drop_behavior
| DROP TYPE_P type_name_list opt_drop_behavior
| DROP TYPE_P IF_P EXISTS type_name_list opt_drop_behavior
| DROP DOMAIN_P type_name_list opt_drop_behavior
| DROP DOMAIN_P IF_P EXISTS type_name_list opt_drop_behavior
| DROP INDEX CONCURRENTLY any_name_list opt_drop_behavior
| DROP INDEX CONCURRENTLY IF_P EXISTS any_name_list opt_drop_behavior
Used by (1)
References (9)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
drop table IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterExtensionContentsStmt › object_type_any_name
BNF object_type_any_name ::= TABLE
| SEQUENCE
| VIEW
| MATERIALIZED VIEW
| INDEX
| FOREIGN TABLE
| COLLATION
| CONVERSION_P
| STATISTICS
| TEXT_P SEARCH PARSER
| TEXT_P SEARCH DICTIONARY
| TEXT_P SEARCH TEMPLATE
| TEXT_P SEARCH CONFIGURATION
Used by (4)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
table
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DropStmt › drop_type_name
BNF drop_type_name ::= ACCESS METHOD
| EVENT TRIGGER
| EXTENSION
| FOREIGN DATA_P WRAPPER
| opt_procedural LANGUAGE
| PUBLICATION
| SCHEMA
| SERVER
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
extension
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › any_name
BNF any_name ::= ColId
| ColId attrs
Used by (38)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT
parse_toplevel › Typename › SimpleTypename › GenericType › attrs
BNF attrs ::= '.' attr_name
| attrs '.' attr_name
Used by (5)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
. IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › TruncateStmt
BNF TruncateStmt ::= TRUNCATE opt_table relation_expr_list opt_restart_seqs opt_drop_behavior
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
truncate IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › SecLabelStmt
BNF SecLabelStmt ::= SECURITY LABEL opt_provider ON object_type_any_name any_name IS security_label
| SECURITY LABEL opt_provider ON COLUMN any_name IS security_label
| SECURITY LABEL opt_provider ON object_type_name name IS security_label
| SECURITY LABEL opt_provider ON TYPE_P Typename IS security_label
| SECURITY LABEL opt_provider ON DOMAIN_P Typename IS security_label
| SECURITY LABEL opt_provider ON AGGREGATE aggregate_with_argtypes IS security_label
| SECURITY LABEL opt_provider ON FUNCTION function_with_argtypes IS security_label
| SECURITY LABEL opt_provider ON LARGE_P OBJECT_P NumericOnly IS security_label
| SECURITY LABEL opt_provider ON PROCEDURE function_with_argtypes IS security_label
| SECURITY LABEL opt_provider ON ROUTINE function_with_argtypes IS security_label
Used by (1)
References (10)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
security label on table IDENT is null
parse_toplevel › stmtmulti › toplevel_stmt › stmt › FetchStmt
BNF FetchStmt ::= FETCH fetch_args
| MOVE fetch_args
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
fetch IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › FetchStmt › fetch_args
BNF fetch_args ::= cursor_name
| from_in cursor_name
| NEXT opt_from_in cursor_name
| PRIOR opt_from_in cursor_name
| FIRST_P opt_from_in cursor_name
| LAST_P opt_from_in cursor_name
| ABSOLUTE_P SignedIconst opt_from_in cursor_name
| RELATIVE_P SignedIconst opt_from_in cursor_name
| SignedIconst opt_from_in cursor_name
| ALL opt_from_in cursor_name
| FORWARD opt_from_in cursor_name
| FORWARD SignedIconst opt_from_in cursor_name
| FORWARD ALL opt_from_in cursor_name
| BACKWARD opt_from_in cursor_name
| BACKWARD SignedIconst opt_from_in cursor_name
| BACKWARD ALL opt_from_in cursor_name
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › GrantStmt
BNF GrantStmt ::= GRANT privileges ON privilege_target TO grantee_list opt_grant_grant_option opt_granted_by
Used by (2)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
grant all on IDENT to current_role
parse_toplevel › stmtmulti › toplevel_stmt › stmt › RevokeStmt
BNF RevokeStmt ::= REVOKE privileges ON privilege_target FROM grantee_list opt_granted_by opt_drop_behavior
| REVOKE GRANT OPTION FOR privileges ON privilege_target FROM grantee_list opt_granted_by opt_drop_behavior
Used by (1)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
revoke all on IDENT from current_role
parse_toplevel › stmtmulti › toplevel_stmt › stmt › GrantStmt › privileges
BNF privileges ::= privilege_list
| ALL
| ALL PRIVILEGES
| ALL '(' columnList ')'
| ALL PRIVILEGES '(' columnList ')'
Used by (3)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
all
parse_toplevel › stmtmulti › toplevel_stmt › stmt › GrantRoleStmt › privilege_list › privilege
BNF privilege ::= SELECT opt_column_list
| REFERENCES opt_column_list
| CREATE opt_column_list
| ALTER SYSTEM_P
| ColId opt_column_list
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
select
parse_toplevel › stmtmulti › toplevel_stmt › stmt › GrantStmt › privilege_target
BNF privilege_target ::= qualified_name_list
| TABLE qualified_name_list
| SEQUENCE qualified_name_list
| FOREIGN DATA_P WRAPPER name_list
| FOREIGN SERVER name_list
| FUNCTION function_with_argtypes_list
| PROCEDURE function_with_argtypes_list
| ROUTINE function_with_argtypes_list
| DATABASE name_list
| DOMAIN_P any_name_list
| LANGUAGE name_list
| LARGE_P OBJECT_P NumericOnly_list
| PARAMETER parameter_name_list
| SCHEMA name_list
| TABLESPACE name_list
| TYPE_P any_name_list
| ALL TABLES IN_P SCHEMA name_list
| ALL SEQUENCES IN_P SCHEMA name_list
| ALL FUNCTIONS IN_P SCHEMA name_list
| ALL PROCEDURES IN_P SCHEMA name_list
| ALL ROUTINES IN_P SCHEMA name_list
Used by (2)
References (6)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › GrantStmt › grantee_list
BNF grantee_list ::= grantee
| grantee_list ',' grantee
Used by (4)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
current_role
parse_toplevel › stmtmulti › toplevel_stmt › stmt › GrantRoleStmt
BNF GrantRoleStmt ::= GRANT privilege_list TO role_list opt_granted_by
| GRANT privilege_list TO role_list WITH grant_role_opt_list opt_granted_by
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
grant select to current_role
parse_toplevel › stmtmulti › toplevel_stmt › stmt › RevokeRoleStmt
BNF RevokeRoleStmt ::= REVOKE privilege_list FROM role_list opt_granted_by opt_drop_behavior
| REVOKE ColId OPTION FOR privilege_list FROM role_list opt_granted_by opt_drop_behavior
Used by (1)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
revoke select from current_role
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterDefaultPrivilegesStmt
BNF AlterDefaultPrivilegesStmt ::= ALTER DEFAULT PRIVILEGES DefACLOptionList DefACLAction
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter default privileges grant all on tables to current_role
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterDefaultPrivilegesStmt › DefACLAction
BNF DefACLAction ::= GRANT privileges ON defacl_privilege_target TO grantee_list opt_grant_grant_option
| REVOKE privileges ON defacl_privilege_target FROM grantee_list opt_drop_behavior
| REVOKE GRANT OPTION FOR privileges ON defacl_privilege_target FROM grantee_list opt_drop_behavior
Used by (1)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
grant all on tables to current_role
parse_toplevel › stmtmulti › toplevel_stmt › stmt › IndexStmt
BNF IndexStmt ::= CREATE opt_unique INDEX opt_concurrently opt_single_name ON relation_expr access_method_clause '(' index_params ')' opt_include opt_unique_null_treatment opt_reloptions OptTableSpace where_clause
| CREATE opt_unique INDEX opt_concurrently IF_P NOT EXISTS name ON relation_expr access_method_clause '(' index_params ')' opt_include opt_unique_null_treatment opt_reloptions OptTableSpace where_clause
Used by (2)
References (12)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create index on IDENT ( IDENT )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › IndexStmt › index_params
BNF index_params ::= index_elem
| index_params ',' index_elem
Used by (3)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › IndexStmt › index_params › index_elem
BNF index_elem ::= ColId index_elem_options
| func_expr_windowless index_elem_options
| '(' a_expr ')' index_elem_options
Used by (3)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › IndexStmt › opt_include
BNF opt_include ::= INCLUDE '(' index_including_params ')'
| ε
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateFunctionStmt
BNF CreateFunctionStmt ::= CREATE opt_or_replace FUNCTION func_name func_args_with_defaults RETURNS func_return opt_createfunc_opt_list opt_routine_body
| CREATE opt_or_replace FUNCTION func_name func_args_with_defaults RETURNS TABLE '(' table_func_column_list ')' opt_createfunc_opt_list opt_routine_body
| CREATE opt_or_replace FUNCTION func_name func_args_with_defaults opt_createfunc_opt_list opt_routine_body
| CREATE opt_or_replace PROCEDURE func_name func_args_with_defaults opt_createfunc_opt_list opt_routine_body
Used by (1)
References (7)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create function IDENT ( )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DefineStmt › aggr_args
BNF aggr_args ::= '(' '*' ')'
| '(' aggr_args_list ')'
| '(' ORDER BY aggr_args_list ')'
| '(' aggr_args_list ORDER BY aggr_args_list ')'
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
( * )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterFunctionStmt › alterfunc_opt_list › common_func_opt_item
BNF common_func_opt_item ::= CALLED ON NULL_P INPUT_P
| RETURNS NULL_P ON NULL_P INPUT_P
| STRICT_P
| IMMUTABLE
| STABLE
| VOLATILE
| EXTERNAL SECURITY DEFINER
| EXTERNAL SECURITY INVOKER
| SECURITY DEFINER
| SECURITY INVOKER
| LEAKPROOF
| NOT LEAKPROOF
| COST NumericOnly
| ROWS NumericOnly
| SUPPORT any_name
| FunctionSetResetClause
| PARALLEL ColId
Used by (2)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
strict
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateFunctionStmt › opt_routine_body
BNF opt_routine_body ::= ReturnStmt
| BEGIN_P ATOMIC routine_body_stmt_list END_P
| ε
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateFunctionStmt › opt_routine_body › routine_body_stmt_list
BNF routine_body_stmt_list ::= routine_body_stmt_list routine_body_stmt ';'
| ε
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateFunctionStmt › opt_routine_body › routine_body_stmt_list › routine_body_stmt
BNF routine_body_stmt ::= stmt
| ReturnStmt
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterFunctionStmt
BNF AlterFunctionStmt ::= ALTER FUNCTION function_with_argtypes alterfunc_opt_list opt_restrict
| ALTER PROCEDURE function_with_argtypes alterfunc_opt_list opt_restrict
| ALTER ROUTINE function_with_argtypes alterfunc_opt_list opt_restrict
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter function authorization strict
parse_toplevel › stmtmulti › toplevel_stmt › stmt › RemoveFuncStmt
BNF RemoveFuncStmt ::= DROP FUNCTION function_with_argtypes_list opt_drop_behavior
| DROP FUNCTION IF_P EXISTS function_with_argtypes_list opt_drop_behavior
| DROP PROCEDURE function_with_argtypes_list opt_drop_behavior
| DROP PROCEDURE IF_P EXISTS function_with_argtypes_list opt_drop_behavior
| DROP ROUTINE function_with_argtypes_list opt_drop_behavior
| DROP ROUTINE IF_P EXISTS function_with_argtypes_list opt_drop_behavior
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
drop function authorization
parse_toplevel › stmtmulti › toplevel_stmt › stmt › RemoveAggrStmt
BNF RemoveAggrStmt ::= DROP AGGREGATE aggregate_with_argtypes_list opt_drop_behavior
| DROP AGGREGATE IF_P EXISTS aggregate_with_argtypes_list opt_drop_behavior
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
drop aggregate IDENT ( * )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › RemoveOperStmt
BNF RemoveOperStmt ::= DROP OPERATOR operator_with_argtypes_list opt_drop_behavior
| DROP OPERATOR IF_P EXISTS operator_with_argtypes_list opt_drop_behavior
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
drop operator Op ( int )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DoStmt
BNF DoStmt ::= DO dostmt_opt_list
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
do SCONST
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DoStmt › dostmt_opt_list
BNF dostmt_opt_list ::= dostmt_opt_item
| dostmt_opt_list dostmt_opt_item
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
SCONST
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateCastStmt
BNF CreateCastStmt ::= CREATE CAST '(' Typename AS Typename ')' WITH FUNCTION function_with_argtypes cast_context
| CREATE CAST '(' Typename AS Typename ')' WITHOUT FUNCTION cast_context
| CREATE CAST '(' Typename AS Typename ')' WITH INOUT cast_context
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create cast ( int as int ) without function
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateCastStmt › cast_context
BNF cast_context ::= AS IMPLICIT_P
| AS ASSIGNMENT
| ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DropCastStmt
BNF DropCastStmt ::= DROP CAST opt_if_exists '(' Typename AS Typename ')' opt_drop_behavior
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
drop cast ( int as int )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › ReindexStmt
BNF ReindexStmt ::= REINDEX opt_reindex_option_list reindex_target_relation opt_concurrently qualified_name
| REINDEX opt_reindex_option_list SCHEMA opt_concurrently name
| REINDEX opt_reindex_option_list reindex_target_all opt_concurrently opt_single_name
Used by (1)
References (7)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
reindex system
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterTblSpcStmt
BNF AlterTblSpcStmt ::= ALTER TABLESPACE name SET reloptions
| ALTER TABLESPACE name RESET reloptions
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter tablespace IDENT set ( IDENT )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › RenameStmt
BNF RenameStmt ::= ALTER AGGREGATE aggregate_with_argtypes RENAME TO name
| ALTER COLLATION any_name RENAME TO name
| ALTER CONVERSION_P any_name RENAME TO name
| ALTER DATABASE name RENAME TO name
| ALTER DOMAIN_P any_name RENAME TO name
| ALTER DOMAIN_P any_name RENAME CONSTRAINT name TO name
| ALTER FOREIGN DATA_P WRAPPER name RENAME TO name
| ALTER FUNCTION function_with_argtypes RENAME TO name
| ALTER GROUP_P RoleId RENAME TO RoleId
| ALTER opt_procedural LANGUAGE name RENAME TO name
| ALTER OPERATOR CLASS any_name USING name RENAME TO name
| ALTER OPERATOR FAMILY any_name USING name RENAME TO name
| ALTER POLICY name ON qualified_name RENAME TO name
| ALTER POLICY IF_P EXISTS name ON qualified_name RENAME TO name
| ALTER PROCEDURE function_with_argtypes RENAME TO name
| ALTER PUBLICATION name RENAME TO name
| ALTER ROUTINE function_with_argtypes RENAME TO name
| ALTER SCHEMA name RENAME TO name
| ALTER SERVER name RENAME TO name
| ALTER SUBSCRIPTION name RENAME TO name
| ALTER TABLE relation_expr RENAME TO name
| ALTER TABLE IF_P EXISTS relation_expr RENAME TO name
| ALTER SEQUENCE qualified_name RENAME TO name
| ALTER SEQUENCE IF_P EXISTS qualified_name RENAME TO name
| ALTER VIEW qualified_name RENAME TO name
| ALTER VIEW IF_P EXISTS qualified_name RENAME TO name
| ALTER MATERIALIZED VIEW qualified_name RENAME TO name
| ALTER MATERIALIZED VIEW IF_P EXISTS qualified_name RENAME TO name
| ALTER INDEX qualified_name RENAME TO name
| ALTER INDEX IF_P EXISTS qualified_name RENAME TO name
| ALTER FOREIGN TABLE relation_expr RENAME TO name
| ALTER FOREIGN TABLE IF_P EXISTS relation_expr RENAME TO name
| ALTER TABLE relation_expr RENAME opt_column name TO name
| ALTER TABLE IF_P EXISTS relation_expr RENAME opt_column name TO name
| ALTER VIEW qualified_name RENAME opt_column name TO name
| ALTER VIEW IF_P EXISTS qualified_name RENAME opt_column name TO name
| ALTER MATERIALIZED VIEW qualified_name RENAME opt_column name TO name
| ALTER MATERIALIZED VIEW IF_P EXISTS qualified_name RENAME opt_column name TO name
| ALTER TABLE relation_expr RENAME CONSTRAINT name TO name
| ALTER TABLE IF_P EXISTS relation_expr RENAME CONSTRAINT name TO name
| ALTER FOREIGN TABLE relation_expr RENAME opt_column name TO name
| ALTER FOREIGN TABLE IF_P EXISTS relation_expr RENAME opt_column name TO name
| ALTER RULE name ON qualified_name RENAME TO name
| ALTER TRIGGER name ON qualified_name RENAME TO name
| ALTER EVENT TRIGGER name RENAME TO name
| ALTER ROLE RoleId RENAME TO RoleId
| ALTER USER RoleId RENAME TO RoleId
| ALTER TABLESPACE name RENAME TO name
| ALTER STATISTICS any_name RENAME TO name
| ALTER TEXT_P SEARCH PARSER any_name RENAME TO name
| ALTER TEXT_P SEARCH DICTIONARY any_name RENAME TO name
| ALTER TEXT_P SEARCH TEMPLATE any_name RENAME TO name
| ALTER TEXT_P SEARCH CONFIGURATION any_name RENAME TO name
| ALTER TYPE_P any_name RENAME TO name
| ALTER TYPE_P any_name RENAME ATTRIBUTE name TO name opt_drop_behavior
Used by (1)
References (10)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter collation IDENT rename to IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterObjectDependsStmt
BNF AlterObjectDependsStmt ::= ALTER FUNCTION function_with_argtypes opt_no DEPENDS ON EXTENSION name
| ALTER PROCEDURE function_with_argtypes opt_no DEPENDS ON EXTENSION name
| ALTER ROUTINE function_with_argtypes opt_no DEPENDS ON EXTENSION name
| ALTER TRIGGER name ON qualified_name opt_no DEPENDS ON EXTENSION name
| ALTER MATERIALIZED VIEW qualified_name opt_no DEPENDS ON EXTENSION name
| ALTER INDEX qualified_name opt_no DEPENDS ON EXTENSION name
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter function authorization depends on extension IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterObjectSchemaStmt
BNF AlterObjectSchemaStmt ::= ALTER AGGREGATE aggregate_with_argtypes SET SCHEMA name
| ALTER COLLATION any_name SET SCHEMA name
| ALTER CONVERSION_P any_name SET SCHEMA name
| ALTER DOMAIN_P any_name SET SCHEMA name
| ALTER EXTENSION name SET SCHEMA name
| ALTER FUNCTION function_with_argtypes SET SCHEMA name
| ALTER OPERATOR operator_with_argtypes SET SCHEMA name
| ALTER OPERATOR CLASS any_name USING name SET SCHEMA name
| ALTER OPERATOR FAMILY any_name USING name SET SCHEMA name
| ALTER PROCEDURE function_with_argtypes SET SCHEMA name
| ALTER ROUTINE function_with_argtypes SET SCHEMA name
| ALTER TABLE relation_expr SET SCHEMA name
| ALTER TABLE IF_P EXISTS relation_expr SET SCHEMA name
| ALTER STATISTICS any_name SET SCHEMA name
| ALTER TEXT_P SEARCH PARSER any_name SET SCHEMA name
| ALTER TEXT_P SEARCH DICTIONARY any_name SET SCHEMA name
| ALTER TEXT_P SEARCH TEMPLATE any_name SET SCHEMA name
| ALTER TEXT_P SEARCH CONFIGURATION any_name SET SCHEMA name
| ALTER SEQUENCE qualified_name SET SCHEMA name
| ALTER SEQUENCE IF_P EXISTS qualified_name SET SCHEMA name
| ALTER VIEW qualified_name SET SCHEMA name
| ALTER VIEW IF_P EXISTS qualified_name SET SCHEMA name
| ALTER MATERIALIZED VIEW qualified_name SET SCHEMA name
| ALTER MATERIALIZED VIEW IF_P EXISTS qualified_name SET SCHEMA name
| ALTER FOREIGN TABLE relation_expr SET SCHEMA name
| ALTER FOREIGN TABLE IF_P EXISTS relation_expr SET SCHEMA name
| ALTER TYPE_P any_name SET SCHEMA name
Used by (1)
References (7)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter collation IDENT set schema IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterOperatorStmt
BNF AlterOperatorStmt ::= ALTER OPERATOR operator_with_argtypes SET '(' operator_def_list ')'
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter operator Op ( int ) set ( IDENT )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterTypeStmt
BNF AlterTypeStmt ::= ALTER TYPE_P any_name SET '(' operator_def_list ')'
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter type IDENT set ( IDENT )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterOwnerStmt
BNF AlterOwnerStmt ::= ALTER AGGREGATE aggregate_with_argtypes OWNER TO RoleSpec
| ALTER COLLATION any_name OWNER TO RoleSpec
| ALTER CONVERSION_P any_name OWNER TO RoleSpec
| ALTER DATABASE name OWNER TO RoleSpec
| ALTER DOMAIN_P any_name OWNER TO RoleSpec
| ALTER FUNCTION function_with_argtypes OWNER TO RoleSpec
| ALTER opt_procedural LANGUAGE name OWNER TO RoleSpec
| ALTER LARGE_P OBJECT_P NumericOnly OWNER TO RoleSpec
| ALTER OPERATOR operator_with_argtypes OWNER TO RoleSpec
| ALTER OPERATOR CLASS any_name USING name OWNER TO RoleSpec
| ALTER OPERATOR FAMILY any_name USING name OWNER TO RoleSpec
| ALTER PROCEDURE function_with_argtypes OWNER TO RoleSpec
| ALTER ROUTINE function_with_argtypes OWNER TO RoleSpec
| ALTER SCHEMA name OWNER TO RoleSpec
| ALTER TYPE_P any_name OWNER TO RoleSpec
| ALTER TABLESPACE name OWNER TO RoleSpec
| ALTER STATISTICS any_name OWNER TO RoleSpec
| ALTER TEXT_P SEARCH DICTIONARY any_name OWNER TO RoleSpec
| ALTER TEXT_P SEARCH CONFIGURATION any_name OWNER TO RoleSpec
| ALTER FOREIGN DATA_P WRAPPER name OWNER TO RoleSpec
| ALTER SERVER name OWNER TO RoleSpec
| ALTER EVENT TRIGGER name OWNER TO RoleSpec
| ALTER PUBLICATION name OWNER TO RoleSpec
| ALTER SUBSCRIPTION name OWNER TO RoleSpec
Used by (1)
References (8)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter collation IDENT owner to current_role
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreatePublicationStmt
BNF CreatePublicationStmt ::= CREATE PUBLICATION name opt_definition
| CREATE PUBLICATION name FOR ALL TABLES opt_definition
| CREATE PUBLICATION name FOR pub_obj_list opt_definition
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create publication IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterPublicationStmt › pub_obj_list › PublicationObjSpec
BNF PublicationObjSpec ::= TABLE relation_expr opt_column_list OptWhereClause
| TABLES IN_P SCHEMA ColId
| TABLES IN_P SCHEMA CURRENT_SCHEMA
| ColId opt_column_list OptWhereClause
| ColId indirection opt_column_list OptWhereClause
| extended_relation_expr opt_column_list OptWhereClause
| CURRENT_SCHEMA
Used by (1)
References (6)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
current_schema
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterPublicationStmt
BNF AlterPublicationStmt ::= ALTER PUBLICATION name SET definition
| ALTER PUBLICATION name ADD_P pub_obj_list
| ALTER PUBLICATION name SET pub_obj_list
| ALTER PUBLICATION name DROP pub_obj_list
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter publication IDENT add current_schema
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateSubscriptionStmt
BNF CreateSubscriptionStmt ::= CREATE SUBSCRIPTION name CONNECTION Sconst PUBLICATION name_list opt_definition
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create subscription IDENT connection SCONST publication IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterSubscriptionStmt
BNF AlterSubscriptionStmt ::= ALTER SUBSCRIPTION name SET definition
| ALTER SUBSCRIPTION name CONNECTION Sconst
| ALTER SUBSCRIPTION name REFRESH PUBLICATION opt_definition
| ALTER SUBSCRIPTION name ADD_P PUBLICATION name_list opt_definition
| ALTER SUBSCRIPTION name DROP PUBLICATION name_list opt_definition
| ALTER SUBSCRIPTION name SET PUBLICATION name_list opt_definition
| ALTER SUBSCRIPTION name ENABLE_P
| ALTER SUBSCRIPTION name DISABLE_P
| ALTER SUBSCRIPTION name SKIP definition
Used by (1)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter subscription IDENT enable
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DropSubscriptionStmt
BNF DropSubscriptionStmt ::= DROP SUBSCRIPTION name opt_drop_behavior
| DROP SUBSCRIPTION IF_P EXISTS name opt_drop_behavior
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
drop subscription IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › RuleStmt
BNF RuleStmt ::= CREATE opt_or_replace RULE name AS ON event TO qualified_name where_clause DO opt_instead RuleActionList
Used by (1)
References (7)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create rule IDENT as on select to IDENT do nothing
parse_toplevel › stmtmulti › toplevel_stmt › stmt › RuleStmt › RuleActionList
BNF RuleActionList ::= NOTHING
| RuleActionStmt
| '(' RuleActionMulti ')'
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
nothing
parse_toplevel › stmtmulti › toplevel_stmt › stmt › RuleStmt › event
BNF event ::= SELECT
| UPDATE
| DELETE_P
| INSERT
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
select
parse_toplevel › stmtmulti › toplevel_stmt › stmt › NotifyStmt
BNF NotifyStmt ::= NOTIFY ColId notify_payload
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
notify IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › ListenStmt
BNF ListenStmt ::= LISTEN ColId
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
listen IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › UnlistenStmt
BNF UnlistenStmt ::= UNLISTEN ColId
| UNLISTEN '*'
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
unlisten *
parse_toplevel › stmtmulti › toplevel_stmt › stmt › TransactionStmt
BNF TransactionStmt ::= ABORT_P opt_transaction opt_transaction_chain
| START TRANSACTION transaction_mode_list_or_empty
| COMMIT opt_transaction opt_transaction_chain
| ROLLBACK opt_transaction opt_transaction_chain
| SAVEPOINT ColId
| RELEASE SAVEPOINT ColId
| RELEASE ColId
| ROLLBACK opt_transaction TO SAVEPOINT ColId
| ROLLBACK opt_transaction TO ColId
| PREPARE TRANSACTION Sconst
| COMMIT PREPARED Sconst
| ROLLBACK PREPARED Sconst
Used by (1)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
abort
parse_toplevel › stmtmulti › toplevel_stmt › TransactionStmtLegacy
BNF TransactionStmtLegacy ::= BEGIN_P opt_transaction transaction_mode_list_or_empty
| END_P opt_transaction opt_transaction_chain
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
begin
parse_toplevel › stmtmulti › toplevel_stmt › stmt › ViewStmt
BNF ViewStmt ::= CREATE OptTemp VIEW qualified_name opt_column_list opt_reloptions AS SelectStmt opt_check_option
| CREATE OR REPLACE OptTemp VIEW qualified_name opt_column_list opt_reloptions AS SelectStmt opt_check_option
| CREATE OptTemp RECURSIVE VIEW qualified_name '(' columnList ')' opt_reloptions AS SelectStmt opt_check_option
| CREATE OR REPLACE OptTemp RECURSIVE VIEW qualified_name '(' columnList ')' opt_reloptions AS SelectStmt opt_check_option
Used by (2)
References (7)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create view IDENT as select
parse_toplevel › stmtmulti › toplevel_stmt › stmt › ViewStmt › opt_check_option
BNF opt_check_option ::= WITH CHECK OPTION
| WITH CASCADED CHECK OPTION
| WITH LOCAL CHECK OPTION
| ε
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › stmtmulti › toplevel_stmt › stmt › LoadStmt
BNF LoadStmt ::= LOAD file_name
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
load SCONST
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreatedbStmt
BNF CreatedbStmt ::= CREATE DATABASE name opt_with createdb_opt_list
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create database IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterDatabaseStmt
BNF AlterDatabaseStmt ::= ALTER DATABASE name WITH createdb_opt_list
| ALTER DATABASE name createdb_opt_list
| ALTER DATABASE name SET TABLESPACE name
| ALTER DATABASE name REFRESH COLLATION VERSION_P
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter database IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterDatabaseSetStmt
BNF AlterDatabaseSetStmt ::= ALTER DATABASE name SetResetClause
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter database IDENT set names
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DropdbStmt
BNF DropdbStmt ::= DROP DATABASE name
| DROP DATABASE IF_P EXISTS name
| DROP DATABASE name opt_with '(' drop_option_list ')'
| DROP DATABASE IF_P EXISTS name opt_with '(' drop_option_list ')'
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
drop database IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterCollationStmt
BNF AlterCollationStmt ::= ALTER COLLATION any_name REFRESH VERSION_P
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter collation IDENT refresh version
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterSystemStmt
BNF AlterSystemStmt ::= ALTER SYSTEM_P SET generic_set
| ALTER SYSTEM_P RESET generic_reset
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter system reset all
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateDomainStmt
BNF CreateDomainStmt ::= CREATE DOMAIN_P any_name opt_as Typename ColQualList
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create domain IDENT int
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterDomainStmt
BNF AlterDomainStmt ::= ALTER DOMAIN_P any_name alter_column_default
| ALTER DOMAIN_P any_name DROP NOT NULL_P
| ALTER DOMAIN_P any_name SET NOT NULL_P
| ALTER DOMAIN_P any_name ADD_P DomainConstraint
| ALTER DOMAIN_P any_name DROP CONSTRAINT name opt_drop_behavior
| ALTER DOMAIN_P any_name DROP CONSTRAINT IF_P EXISTS name opt_drop_behavior
| ALTER DOMAIN_P any_name VALIDATE CONSTRAINT name
Used by (1)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter domain IDENT drop default
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterTSDictionaryStmt
BNF AlterTSDictionaryStmt ::= ALTER TEXT_P SEARCH DICTIONARY any_name definition
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter text search dictionary IDENT ( IDENT )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterTSConfigurationStmt
BNF AlterTSConfigurationStmt ::= ALTER TEXT_P SEARCH CONFIGURATION any_name ADD_P MAPPING FOR name_list any_with any_name_list
| ALTER TEXT_P SEARCH CONFIGURATION any_name ALTER MAPPING FOR name_list any_with any_name_list
| ALTER TEXT_P SEARCH CONFIGURATION any_name ALTER MAPPING REPLACE any_name any_with any_name
| ALTER TEXT_P SEARCH CONFIGURATION any_name ALTER MAPPING FOR name_list REPLACE any_name any_with any_name
| ALTER TEXT_P SEARCH CONFIGURATION any_name DROP MAPPING FOR name_list
| ALTER TEXT_P SEARCH CONFIGURATION any_name DROP MAPPING IF_P EXISTS FOR name_list
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
alter text search configuration IDENT drop mapping for IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateConversionStmt
BNF CreateConversionStmt ::= CREATE opt_default CONVERSION_P any_name FOR Sconst TO Sconst FROM any_name
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
create conversion IDENT for SCONST to SCONST from IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › ClusterStmt
BNF ClusterStmt ::= CLUSTER '(' utility_option_list ')' qualified_name cluster_index_specification
| CLUSTER '(' utility_option_list ')'
| CLUSTER opt_verbose qualified_name cluster_index_specification
| CLUSTER opt_verbose
| CLUSTER opt_verbose name ON qualified_name
Used by (1)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
cluster
parse_toplevel › stmtmulti › toplevel_stmt › stmt › VacuumStmt
BNF VacuumStmt ::= VACUUM opt_full opt_freeze opt_verbose opt_analyze opt_vacuum_relation_list
| VACUUM '(' utility_option_list ')' opt_vacuum_relation_list
Used by (1)
References (6)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
vacuum
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AnalyzeStmt
BNF AnalyzeStmt ::= analyze_keyword opt_verbose opt_vacuum_relation_list
| analyze_keyword '(' utility_option_list ')' opt_vacuum_relation_list
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
analyze
parse_toplevel › stmtmulti › toplevel_stmt › stmt › ExplainStmt
BNF ExplainStmt ::= EXPLAIN ExplainableStmt
| EXPLAIN analyze_keyword opt_verbose ExplainableStmt
| EXPLAIN VERBOSE ExplainableStmt
| EXPLAIN '(' utility_option_list ')' ExplainableStmt
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
explain select
parse_toplevel › stmtmulti › toplevel_stmt › stmt › ExplainStmt › ExplainableStmt
BNF ExplainableStmt ::= SelectStmt
| InsertStmt
| UpdateStmt
| DeleteStmt
| MergeStmt
| DeclareCursorStmt
| CreateAsStmt
| CreateMatViewStmt
| RefreshMatViewStmt
| ExecuteStmt
Used by (1)
References (10)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
select
parse_toplevel › stmtmulti › toplevel_stmt › stmt › PrepareStmt
BNF PrepareStmt ::= PREPARE name prep_type_clause AS PreparableStmt
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
prepare IDENT as select
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CopyStmt › PreparableStmt
BNF PreparableStmt ::= SelectStmt
| InsertStmt
| UpdateStmt
| DeleteStmt
| MergeStmt
Used by (3)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
select
parse_toplevel › stmtmulti › toplevel_stmt › stmt › ExecuteStmt
BNF ExecuteStmt ::= EXECUTE name execute_param_clause
| CREATE OptTemp TABLE create_as_target AS EXECUTE name execute_param_clause opt_with_data
| CREATE OptTemp TABLE IF_P NOT EXISTS create_as_target AS EXECUTE name execute_param_clause opt_with_data
Used by (2)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
execute IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DeallocateStmt
BNF DeallocateStmt ::= DEALLOCATE name
| DEALLOCATE PREPARE name
| DEALLOCATE ALL
| DEALLOCATE PREPARE ALL
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
deallocate all
parse_toplevel › stmtmulti › toplevel_stmt › stmt › InsertStmt
BNF InsertStmt ::= opt_with_clause INSERT INTO insert_target insert_rest opt_on_conflict returning_clause
Used by (4)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
insert into IDENT select
Code example INSERT INTO users (name) VALUES ('Ada');
parse_toplevel › stmtmulti › toplevel_stmt › stmt › InsertStmt › insert_rest
BNF insert_rest ::= SelectStmt
| OVERRIDING override_kind VALUE_P SelectStmt
| '(' insert_column_list ')' SelectStmt
| '(' insert_column_list ')' OVERRIDING override_kind VALUE_P SelectStmt
| DEFAULT VALUES
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
select
parse_toplevel › stmtmulti › toplevel_stmt › stmt › InsertStmt › opt_on_conflict
BNF opt_on_conflict ::= ON CONFLICT opt_conf_expr DO UPDATE SET set_clause_list where_clause
| ON CONFLICT opt_conf_expr DO NOTHING
| ε
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DeleteStmt
BNF DeleteStmt ::= opt_with_clause DELETE_P FROM relation_expr_opt_alias using_clause where_or_current_clause returning_clause
Used by (4)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
delete from IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › LockStmt
BNF LockStmt ::= LOCK_P opt_table relation_expr_list opt_lock opt_nowait
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
lock IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › LockStmt › opt_lock › lock_type
BNF lock_type ::= ACCESS SHARE
| ROW SHARE
| ROW EXCLUSIVE
| SHARE UPDATE EXCLUSIVE
| SHARE
| SHARE ROW EXCLUSIVE
| EXCLUSIVE
| ACCESS EXCLUSIVE
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
share
parse_toplevel › stmtmulti › toplevel_stmt › stmt › UpdateStmt
BNF UpdateStmt ::= opt_with_clause UPDATE relation_expr_opt_alias SET set_clause_list from_clause where_or_current_clause returning_clause
Used by (4)
References (6)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
update IDENT set IDENT = default
parse_toplevel › stmtmulti › toplevel_stmt › stmt › UpdateStmt › set_clause_list
BNF set_clause_list ::= set_clause
| set_clause_list ',' set_clause
Used by (4)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT = default
parse_toplevel › stmtmulti › toplevel_stmt › stmt › MergeStmt
BNF MergeStmt ::= opt_with_clause MERGE INTO relation_expr_opt_alias USING table_ref ON a_expr merge_when_list returning_clause
Used by (3)
References (6)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
merge into IDENT using IDENT on default when matched then delete
parse_toplevel › stmtmulti › toplevel_stmt › stmt › MergeStmt › merge_when_list
BNF merge_when_list ::= merge_when_clause
| merge_when_list merge_when_clause
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
when matched then delete
parse_toplevel › stmtmulti › toplevel_stmt › stmt › MergeStmt › merge_when_list › merge_when_clause
BNF merge_when_clause ::= merge_when_tgt_matched opt_merge_when_condition THEN merge_update
| merge_when_tgt_matched opt_merge_when_condition THEN merge_delete
| merge_when_tgt_not_matched opt_merge_when_condition THEN merge_insert
| merge_when_tgt_matched opt_merge_when_condition THEN DO NOTHING
| merge_when_tgt_not_matched opt_merge_when_condition THEN DO NOTHING
Used by (1)
References (6)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
when matched then delete
parse_toplevel › stmtmulti › toplevel_stmt › stmt › MergeStmt › merge_when_list › merge_when_clause › merge_insert
BNF merge_insert ::= INSERT merge_values_clause
| INSERT OVERRIDING override_kind VALUE_P merge_values_clause
| INSERT '(' insert_column_list ')' merge_values_clause
| INSERT '(' insert_column_list ')' OVERRIDING override_kind VALUE_P merge_values_clause
| INSERT DEFAULT VALUES
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
insert default values
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DeclareCursorStmt
BNF DeclareCursorStmt ::= DECLARE cursor_name cursor_options CURSOR opt_hold FOR SelectStmt
Used by (2)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
declare IDENT cursor for select
parse_toplevel › stmtmulti › toplevel_stmt › stmt › DeclareCursorStmt › cursor_options
BNF cursor_options ::= ε
| cursor_options NO SCROLL
| cursor_options SCROLL
| cursor_options BINARY
| cursor_options ASENSITIVE
| cursor_options INSENSITIVE
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › stmtmulti › toplevel_stmt › stmt › SelectStmt
BNF SelectStmt ::= select_no_parens
| select_with_parens
Used by (9)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
select
Code example SELECT name FROM users WHERE active = true;
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › select_with_parens
BNF select_with_parens ::= '(' select_no_parens ')'
| '(' select_with_parens ')'
Used by (7)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
( select )
parse_toplevel › stmtmulti › toplevel_stmt › stmt › SelectStmt › select_no_parens
BNF select_no_parens ::= simple_select
| select_clause sort_clause
| select_clause opt_sort_clause for_locking_clause opt_select_limit
| select_clause opt_sort_clause select_limit opt_for_locking_clause
| with_clause select_clause
| with_clause select_clause sort_clause
| with_clause select_clause opt_sort_clause for_locking_clause opt_select_limit
| with_clause select_clause opt_sort_clause select_limit opt_for_locking_clause
Used by (3)
References (9)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
select
parse_toplevel › stmtmulti › toplevel_stmt › stmt › SelectStmt › select_no_parens › simple_select
BNF simple_select ::= SELECT opt_all_clause opt_target_list into_clause from_clause where_clause group_clause having_clause window_clause
| SELECT distinct_clause target_list into_clause from_clause where_clause group_clause having_clause window_clause
| values_clause
| TABLE relation_expr
| select_clause UNION set_quantifier select_clause
| select_clause INTERSECT set_quantifier select_clause
| select_clause EXCEPT set_quantifier select_clause
Used by (2)
References (14)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
select
parse_toplevel › stmtmulti › toplevel_stmt › stmt › SelectStmt › select_no_parens › simple_select › into_clause › OptTempTableName
BNF OptTempTableName ::= TEMPORARY opt_table qualified_name
| TEMP opt_table qualified_name
| LOCAL TEMPORARY opt_table qualified_name
| LOCAL TEMP opt_table qualified_name
| GLOBAL TEMPORARY opt_table qualified_name
| GLOBAL TEMP opt_table qualified_name
| UNLOGGED opt_table qualified_name
| TABLE qualified_name
| qualified_name
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT
parse_toplevel › PLpgSQL_Expr › group_clause › set_quantifier
BNF set_quantifier ::= ALL
| DISTINCT
| ε
Used by (2)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › PLpgSQL_Expr › opt_distinct_clause › distinct_clause
BNF distinct_clause ::= DISTINCT
| DISTINCT ON '(' expr_list ')'
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
distinct
parse_toplevel › PLpgSQL_Expr › opt_distinct_clause
BNF opt_distinct_clause ::= distinct_clause
| opt_all_clause
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › PLpgSQL_Expr › opt_sort_clause
BNF opt_sort_clause ::= sort_clause
| ε
Used by (5)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › PLpgSQL_Expr › opt_sort_clause › sort_clause
BNF sort_clause ::= ORDER BY sortby_list
Used by (3)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
order by default
parse_toplevel › PLpgSQL_Expr › opt_sort_clause › sort_clause › sortby_list › sortby
BNF sortby ::= a_expr USING qual_all_Op opt_nulls_order
| a_expr opt_asc_desc opt_nulls_order
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
default
parse_toplevel › PLpgSQL_Expr › opt_select_limit › select_limit
BNF select_limit ::= limit_clause offset_clause
| offset_clause limit_clause
| limit_clause
| offset_clause
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
limit all
parse_toplevel › PLpgSQL_Expr › opt_select_limit
BNF opt_select_limit ::= select_limit
| ε
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › PLpgSQL_Expr › opt_select_limit › select_limit › limit_clause
BNF limit_clause ::= LIMIT select_limit_value
| LIMIT select_limit_value ',' select_offset_value
| FETCH first_or_next select_fetch_first_value row_or_rows ONLY
| FETCH first_or_next select_fetch_first_value row_or_rows WITH TIES
| FETCH first_or_next row_or_rows ONLY
| FETCH first_or_next row_or_rows WITH TIES
Used by (1)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
limit all
parse_toplevel › PLpgSQL_Expr › opt_select_limit › select_limit › offset_clause
BNF offset_clause ::= OFFSET select_offset_value
| OFFSET select_fetch_first_value row_or_rows
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
offset default
parse_toplevel › PLpgSQL_Expr › group_clause
BNF group_clause ::= GROUP_P BY set_quantifier group_by_list
| ε
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › PLpgSQL_Expr › group_clause › group_by_list
BNF group_by_list ::= group_by_item
| group_by_list ',' group_by_item
Used by (3)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
default
parse_toplevel › PLpgSQL_Expr › group_clause › group_by_list › group_by_item
BNF group_by_item ::= a_expr
| empty_grouping_set
| cube_clause
| rollup_clause
| grouping_sets_clause
Used by (1)
References (5)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
default
parse_toplevel › PLpgSQL_Expr › having_clause
BNF having_clause ::= HAVING a_expr
| ε
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › PLpgSQL_Expr › opt_for_locking_clause
BNF opt_for_locking_clause ::= for_locking_clause
| ε
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › PLpgSQL_Expr › from_clause
BNF from_clause ::= FROM from_list
| ε
Used by (3)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › PLpgSQL_Expr › from_clause › from_list
BNF from_list ::= table_ref
| from_list ',' table_ref
Used by (4)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT
parse_toplevel › PLpgSQL_Expr › from_clause › from_list › table_ref
BNF table_ref ::= relation_expr opt_alias_clause
| relation_expr opt_alias_clause tablesample_clause
| func_table func_alias_clause
| LATERAL_P func_table func_alias_clause
| xmltable opt_alias_clause
| LATERAL_P xmltable opt_alias_clause
| select_with_parens opt_alias_clause
| LATERAL_P select_with_parens opt_alias_clause
| joined_table
| '(' joined_table ')' alias_clause
| json_table opt_alias_clause
| LATERAL_P json_table opt_alias_clause
Used by (3)
References (10)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT
parse_toplevel › PLpgSQL_Expr › from_clause › from_list › table_ref › joined_table
BNF joined_table ::= '(' joined_table ')'
| table_ref CROSS JOIN table_ref
| table_ref join_type JOIN table_ref join_qual
| table_ref JOIN table_ref join_qual
| table_ref NATURAL join_type JOIN table_ref
| table_ref NATURAL JOIN table_ref
Used by (2)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT cross join IDENT
parse_toplevel › PLpgSQL_Expr › from_clause › from_list › table_ref › alias_clause
BNF alias_clause ::= AS ColId '(' name_list ')'
| AS ColId
| ColId '(' name_list ')'
| ColId
Used by (3)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT
parse_toplevel › PLpgSQL_Expr › from_clause › from_list › table_ref › func_alias_clause
BNF func_alias_clause ::= alias_clause
| AS '(' TableFuncElementList ')'
| AS ColId '(' TableFuncElementList ')'
| ColId '(' TableFuncElementList ')'
| ε
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › PLpgSQL_Expr › from_clause › from_list › table_ref › tablesample_clause
BNF tablesample_clause ::= TABLESAMPLE func_name '(' expr_list ')' opt_repeatable_clause
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
tablesample IDENT ( default )
parse_toplevel › PLpgSQL_Expr › from_clause › from_list › table_ref › func_table
BNF func_table ::= func_expr_windowless opt_ordinality
| ROWS FROM '(' rowsfrom_list ')' opt_ordinality
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
current_date
parse_toplevel › PLpgSQL_Expr › where_clause
BNF where_clause ::= WHERE a_expr
| ε
Used by (7)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › PLpgSQL_Expr › from_clause › from_list › table_ref › xmltable
BNF xmltable ::= XMLTABLE '(' c_expr xmlexists_argument COLUMNS xmltable_column_list ')'
| XMLTABLE '(' XMLNAMESPACES '(' xml_namespace_list ')' ',' c_expr xmlexists_argument COLUMNS xmltable_column_list ')'
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
xmltable ( FCONST passing FCONST columns IDENT int )
parse_toplevel › PLpgSQL_Expr › from_clause › from_list › table_ref › json_table
BNF json_table ::= JSON_TABLE '(' json_value_expr ',' a_expr json_table_path_name_opt json_passing_clause_opt COLUMNS '(' json_table_column_definition_list ')' json_on_error_clause_opt ')'
Used by (1)
References (6)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
json_table ( default , default columns ( IDENT int ) )
parse_toplevel › PLpgSQL_Expr › from_clause › from_list › table_ref › json_table › json_table_column_definition_list › json_table_column_definition
BNF json_table_column_definition ::= ColId FOR ORDINALITY
| ColId Typename json_table_column_path_clause_opt json_wrapper_behavior json_quotes_clause_opt json_behavior_clause_opt
| ColId Typename json_format_clause json_table_column_path_clause_opt json_wrapper_behavior json_quotes_clause_opt json_behavior_clause_opt
| ColId Typename EXISTS json_table_column_path_clause_opt json_on_error_clause_opt
| NESTED path_opt Sconst COLUMNS '(' json_table_column_definition_list ')'
| NESTED path_opt Sconst AS name COLUMNS '(' json_table_column_definition_list ')'
Used by (1)
References (12)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT int
parse_toplevel › Typename
BNF Typename ::= SimpleTypename opt_array_bounds
| SETOF SimpleTypename opt_array_bounds
| SimpleTypename ARRAY '[' Iconst ']'
| SETOF SimpleTypename ARRAY '[' Iconst ']'
| SimpleTypename ARRAY
| SETOF SimpleTypename ARRAY
Used by (26)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
int
parse_toplevel › Typename › opt_array_bounds
BNF opt_array_bounds ::= opt_array_bounds '[' ']'
| opt_array_bounds '[' Iconst ']'
| ε
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › Typename › SimpleTypename
BNF SimpleTypename ::= GenericType
| Numeric
| Bit
| Character
| ConstDatetime
| ConstInterval opt_interval
| ConstInterval '(' Iconst ')'
| JsonType
Used by (3)
References (9)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
int
parse_toplevel › Typename › SimpleTypename › GenericType
BNF GenericType ::= type_function_name opt_type_modifiers
| type_function_name attrs opt_type_modifiers
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT
parse_toplevel › Typename › SimpleTypename › Numeric
BNF Numeric ::= INT_P
| INTEGER
| SMALLINT
| BIGINT
| REAL
| FLOAT_P opt_float
| DOUBLE_P PRECISION
| DECIMAL_P opt_type_modifiers
| DEC opt_type_modifiers
| NUMERIC opt_type_modifiers
| BOOLEAN_P
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
int
parse_toplevel › Typename › SimpleTypename › Numeric › opt_float
BNF opt_float ::= '(' Iconst ')'
| ε
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › Typename › SimpleTypename › Bit
BNF Bit ::= BitWithLength
| BitWithoutLength
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
bit
parse_toplevel › Typename › SimpleTypename › Bit › BitWithLength
BNF BitWithLength ::= BIT opt_varying '(' expr_list ')'
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
bit ( default )
parse_toplevel › Typename › SimpleTypename › Character
BNF Character ::= CharacterWithLength
| CharacterWithoutLength
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
varchar
parse_toplevel › Typename › SimpleTypename › Character › CharacterWithLength › character
BNF character ::= CHARACTER opt_varying
| CHAR_P opt_varying
| VARCHAR
| NATIONAL CHARACTER opt_varying
| NATIONAL CHAR_P opt_varying
| NCHAR opt_varying
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
varchar
parse_toplevel › Typename › SimpleTypename › ConstDatetime
BNF ConstDatetime ::= TIMESTAMP '(' Iconst ')' opt_timezone
| TIMESTAMP opt_timezone
| TIME '(' Iconst ')' opt_timezone
| TIME opt_timezone
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
timestamp
parse_toplevel › Typename › SimpleTypename › ConstInterval
BNF ConstInterval ::= INTERVAL
Used by (3)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
interval
parse_toplevel › Typename › SimpleTypename › opt_interval
BNF opt_interval ::= YEAR_P
| MONTH_P
| DAY_P
| HOUR_P
| MINUTE_P
| interval_second
| YEAR_P TO MONTH_P
| DAY_P TO HOUR_P
| DAY_P TO MINUTE_P
| DAY_P TO interval_second
| HOUR_P TO MINUTE_P
| HOUR_P TO interval_second
| MINUTE_P TO interval_second
| ε
Used by (3)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › Typename › SimpleTypename › JsonType
BNF JsonType ::= JSON
Used by (2)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
json
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr
BNF a_expr ::= c_expr
| a_expr TYPECAST Typename
| a_expr COLLATE any_name
| a_expr AT TIME ZONE a_expr
| a_expr AT LOCAL
| '+' a_expr
| '-' a_expr
| a_expr '+' a_expr
| a_expr '-' a_expr
| a_expr '*' a_expr
| a_expr '/' a_expr
| a_expr '%' a_expr
| a_expr '^' a_expr
| a_expr '<' a_expr
| a_expr '>' a_expr
| a_expr '=' a_expr
| a_expr LESS_EQUALS a_expr
| a_expr GREATER_EQUALS a_expr
| a_expr NOT_EQUALS a_expr
| a_expr qual_Op a_expr
| qual_Op a_expr
| a_expr AND a_expr
| a_expr OR a_expr
| NOT a_expr
| NOT_LA a_expr
| a_expr LIKE a_expr
| a_expr LIKE a_expr ESCAPE a_expr
| a_expr NOT_LA LIKE a_expr
| a_expr NOT_LA LIKE a_expr ESCAPE a_expr
| a_expr ILIKE a_expr
| a_expr ILIKE a_expr ESCAPE a_expr
| a_expr NOT_LA ILIKE a_expr
| a_expr NOT_LA ILIKE a_expr ESCAPE a_expr
| a_expr SIMILAR TO a_expr
| a_expr SIMILAR TO a_expr ESCAPE a_expr
| a_expr NOT_LA SIMILAR TO a_expr
| a_expr NOT_LA SIMILAR TO a_expr ESCAPE a_expr
| a_expr IS NULL_P
| a_expr ISNULL
| a_expr IS NOT NULL_P
| a_expr NOTNULL
| row OVERLAPS row
| a_expr IS TRUE_P
| a_expr IS NOT TRUE_P
| a_expr IS FALSE_P
| a_expr IS NOT FALSE_P
| a_expr IS UNKNOWN
| a_expr IS NOT UNKNOWN
| a_expr IS DISTINCT FROM a_expr
| a_expr IS NOT DISTINCT FROM a_expr
| a_expr BETWEEN opt_asymmetric b_expr AND a_expr
| a_expr NOT_LA BETWEEN opt_asymmetric b_expr AND a_expr
| a_expr BETWEEN SYMMETRIC b_expr AND a_expr
| a_expr NOT_LA BETWEEN SYMMETRIC b_expr AND a_expr
| a_expr IN_P in_expr
| a_expr NOT_LA IN_P in_expr
| a_expr subquery_Op sub_type select_with_parens
| a_expr subquery_Op sub_type '(' a_expr ')'
| UNIQUE opt_unique_null_treatment select_with_parens
| a_expr IS DOCUMENT_P
| a_expr IS NOT DOCUMENT_P
| a_expr IS NORMALIZED
| a_expr IS unicode_normal_form NORMALIZED
| a_expr IS NOT NORMALIZED
| a_expr IS NOT unicode_normal_form NORMALIZED
| a_expr IS json_predicate_type_constraint json_key_uniqueness_constraint_opt
| a_expr IS NOT json_predicate_type_constraint json_key_uniqueness_constraint_opt
| DEFAULT
Used by (53)
References (16)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
default
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › b_expr
BNF b_expr ::= c_expr
| b_expr TYPECAST Typename
| '+' b_expr
| '-' b_expr
| b_expr '+' b_expr
| b_expr '-' b_expr
| b_expr '*' b_expr
| b_expr '/' b_expr
| b_expr '%' b_expr
| b_expr '^' b_expr
| b_expr '<' b_expr
| b_expr '>' b_expr
| b_expr '=' b_expr
| b_expr LESS_EQUALS b_expr
| b_expr GREATER_EQUALS b_expr
| b_expr NOT_EQUALS b_expr
| b_expr qual_Op b_expr
| qual_Op b_expr
| b_expr IS DISTINCT FROM b_expr
| b_expr IS NOT DISTINCT FROM b_expr
| b_expr IS DOCUMENT_P
| b_expr IS NOT DOCUMENT_P
Used by (6)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
FCONST
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › c_expr
BNF c_expr ::= columnref
| AexprConst
| PARAM opt_indirection
| '(' a_expr ')' opt_indirection
| case_expr
| func_expr
| select_with_parens
| select_with_parens indirection
| EXISTS select_with_parens
| ARRAY select_with_parens
| ARRAY array_expr
| explicit_row
| implicit_row
| GROUPING '(' expr_list ')'
Used by (7)
References (12)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
FCONST
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CallStmt › func_application
BNF func_application ::= func_name '(' ')'
| func_name '(' func_arg_list opt_sort_clause ')'
| func_name '(' VARIADIC func_arg_expr opt_sort_clause ')'
| func_name '(' func_arg_list ',' VARIADIC func_arg_expr opt_sort_clause ')'
| func_name '(' ALL func_arg_list opt_sort_clause ')'
| func_name '(' DISTINCT func_arg_list opt_sort_clause ')'
| func_name '(' '*' ')'
Used by (3)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT ( )
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › c_expr › func_expr
BNF func_expr ::= func_application within_group_clause filter_clause over_clause
| json_aggregate_func filter_clause over_clause
| func_expr_common_subexpr
Used by (1)
References (6)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
current_date
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › c_expr › func_expr › func_expr_common_subexpr
BNF func_expr_common_subexpr ::= COLLATION FOR '(' a_expr ')'
| CURRENT_DATE
| CURRENT_TIME
| CURRENT_TIME '(' Iconst ')'
| CURRENT_TIMESTAMP
| CURRENT_TIMESTAMP '(' Iconst ')'
| LOCALTIME
| LOCALTIME '(' Iconst ')'
| LOCALTIMESTAMP
| LOCALTIMESTAMP '(' Iconst ')'
| CURRENT_ROLE
| CURRENT_USER
| SESSION_USER
| SYSTEM_USER
| USER
| CURRENT_CATALOG
| CURRENT_SCHEMA
| CAST '(' a_expr AS Typename ')'
| EXTRACT '(' extract_list ')'
| NORMALIZE '(' a_expr ')'
| NORMALIZE '(' a_expr ',' unicode_normal_form ')'
| OVERLAY '(' overlay_list ')'
| OVERLAY '(' func_arg_list_opt ')'
| POSITION '(' position_list ')'
| SUBSTRING '(' substr_list ')'
| SUBSTRING '(' func_arg_list_opt ')'
| TREAT '(' a_expr AS Typename ')'
| TRIM '(' BOTH trim_list ')'
| TRIM '(' LEADING trim_list ')'
| TRIM '(' TRAILING trim_list ')'
| TRIM '(' trim_list ')'
| NULLIF '(' a_expr ',' a_expr ')'
| COALESCE '(' expr_list ')'
| GREATEST '(' expr_list ')'
| LEAST '(' expr_list ')'
| XMLCONCAT '(' expr_list ')'
| XMLELEMENT '(' NAME_P ColLabel ')'
| XMLELEMENT '(' NAME_P ColLabel ',' xml_attributes ')'
| XMLELEMENT '(' NAME_P ColLabel ',' expr_list ')'
| XMLELEMENT '(' NAME_P ColLabel ',' xml_attributes ',' expr_list ')'
| XMLEXISTS '(' c_expr xmlexists_argument ')'
| XMLFOREST '(' xml_attribute_list ')'
| XMLPARSE '(' document_or_content a_expr xml_whitespace_option ')'
| XMLPI '(' NAME_P ColLabel ')'
| XMLPI '(' NAME_P ColLabel ',' a_expr ')'
| XMLROOT '(' a_expr ',' xml_root_version opt_xml_root_standalone ')'
| XMLSERIALIZE '(' document_or_content a_expr AS SimpleTypename xml_indent_option ')'
| JSON_OBJECT '(' func_arg_list ')'
| JSON_OBJECT '(' json_name_and_value_list json_object_constructor_null_clause_opt json_key_uniqueness_constraint_opt json_returning_clause_opt ')'
| JSON_OBJECT '(' json_returning_clause_opt ')'
| JSON_ARRAY '(' json_value_expr_list json_array_constructor_null_clause_opt json_returning_clause_opt ')'
| JSON_ARRAY '(' select_no_parens json_format_clause_opt json_returning_clause_opt ')'
| JSON_ARRAY '(' json_returning_clause_opt ')'
| JSON '(' json_value_expr json_key_uniqueness_constraint_opt ')'
| JSON_SCALAR '(' a_expr ')'
| JSON_SERIALIZE '(' json_value_expr json_returning_clause_opt ')'
| MERGE_ACTION '(' ')'
| JSON_QUERY '(' json_value_expr ',' a_expr json_passing_clause_opt json_returning_clause_opt json_wrapper_behavior json_quotes_clause_opt json_behavior_clause_opt ')'
| JSON_EXISTS '(' json_value_expr ',' a_expr json_passing_clause_opt json_on_error_clause_opt ')'
| JSON_VALUE '(' json_value_expr ',' a_expr json_passing_clause_opt json_returning_clause_opt json_behavior_clause_opt ')'
Used by (2)
References (37)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
current_date
parse_toplevel › stmtmulti › toplevel_stmt › stmt › VariableSetStmt › set_rest › set_rest_more › document_or_content
BNF document_or_content ::= DOCUMENT_P
| CONTENT_P
Used by (2)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
document
parse_toplevel › PLpgSQL_Expr › from_clause › from_list › table_ref › xmltable › xmlexists_argument
BNF xmlexists_argument ::= PASSING c_expr
| PASSING c_expr xml_passing_mech
| PASSING xml_passing_mech c_expr
| PASSING xml_passing_mech c_expr xml_passing_mech
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
passing FCONST
parse_toplevel › PLpgSQL_Expr › window_clause
BNF window_clause ::= WINDOW window_definition_list
| ε
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › PLpgSQL_Expr › window_clause › window_definition_list
BNF window_definition_list ::= window_definition
| window_definition_list ',' window_definition
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT as ( )
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › row
BNF row ::= ROW '(' expr_list ')'
| ROW '(' ')'
| '(' expr_list ',' a_expr ')'
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
row ( )
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › c_expr › implicit_row
BNF implicit_row ::= '(' expr_list ',' a_expr ')'
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
( default , default )
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › sub_type
BNF sub_type ::= ANY
| SOME
| ALL
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
any
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › subquery_Op › all_Op › MathOp
BNF MathOp ::= '+'
| '-'
| '*'
| '/'
| '%'
| '^'
| '<'
| '>'
| '='
| LESS_EQUALS
| GREATER_EQUALS
| NOT_EQUALS
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
+
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › qual_Op
BNF qual_Op ::= Op
| OPERATOR '(' any_operator ')'
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
Op
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › subquery_Op
BNF subquery_Op ::= all_Op
| OPERATOR '(' any_operator ')'
| LIKE
| NOT_LA LIKE
| ILIKE
| NOT_LA ILIKE
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
Op
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › c_expr › array_expr
BNF array_expr ::= '[' expr_list ']'
| '[' array_expr_list ']'
| '[' ']'
Used by (2)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
[ ]
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › in_expr
BNF in_expr ::= select_with_parens
| '(' expr_list ')'
Used by (1)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
( default )
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › c_expr › case_expr
BNF case_expr ::= CASE case_arg when_clause_list case_default END_P
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
case when default then default end
parse_toplevel › PLAssignStmt › opt_indirection › indirection_el
BNF indirection_el ::= '.' attr_name
| '.' '*'
| '[' a_expr ']'
| '[' opt_slice_bound ':' opt_slice_bound ']'
Used by (2)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
. *
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › c_expr › indirection
BNF indirection ::= indirection_el
| indirection indirection_el
Used by (7)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
. *
parse_toplevel › PLAssignStmt › opt_indirection
BNF opt_indirection ::= ε
| opt_indirection indirection_el
Used by (5)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › c_expr › func_expr › func_expr_common_subexpr › json_wrapper_behavior
BNF json_wrapper_behavior ::= WITHOUT WRAPPER
| WITHOUT ARRAY WRAPPER
| WITH WRAPPER
| WITH ARRAY WRAPPER
| WITH CONDITIONAL ARRAY WRAPPER
| WITH UNCONDITIONAL ARRAY WRAPPER
| WITH CONDITIONAL WRAPPER
| WITH UNCONDITIONAL WRAPPER
| ε
Used by (2)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › c_expr › func_expr › json_aggregate_func
BNF json_aggregate_func ::= JSON_OBJECTAGG '(' json_name_and_value json_object_constructor_null_clause_opt json_key_uniqueness_constraint_opt json_returning_clause_opt ')'
| JSON_ARRAYAGG '(' json_value_expr json_array_aggregate_order_by_clause_opt json_array_constructor_null_clause_opt json_returning_clause_opt ')'
Used by (2)
References (7)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
json_arrayagg ( default )
parse_toplevel › PLpgSQL_Expr › opt_target_list
BNF opt_target_list ::= target_list
| ε
Used by (2)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › PLpgSQL_Expr › opt_target_list › target_list
BNF target_list ::= target_el
| target_list ',' target_el
Used by (4)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
default
parse_toplevel › PLpgSQL_Expr › opt_target_list › target_list › target_el
BNF target_el ::= a_expr AS ColLabel
| a_expr BareColLabel
| a_expr
| '*'
Used by (1)
References (3)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
default
parse_toplevel › PLpgSQL_Expr › where_clause › a_expr › c_expr › AexprConst
BNF AexprConst ::= Iconst
| FCONST
| Sconst
| BCONST
| XCONST
| func_name Sconst
| func_name '(' func_arg_list opt_sort_clause ')' Sconst
| ConstTypename Sconst
| ConstInterval Sconst opt_interval
| ConstInterval '(' Iconst ')' Sconst
| TRUE_P
| FALSE_P
| NULL_P
Used by (2)
References (8)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
FCONST
parse_toplevel › Typename › Iconst
BNF Iconst ::= ICONST
Used by (18)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ICONST
parse_toplevel › stmtmulti › toplevel_stmt › stmt › AlterGroupStmt › RoleSpec
BNF RoleSpec ::= NonReservedWord
| CURRENT_ROLE
| CURRENT_USER
| SESSION_USER
Used by (13)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
current_role
parse_toplevel › PLpgSQL_Expr
BNF PLpgSQL_Expr ::= opt_distinct_clause opt_target_list from_clause where_clause group_clause having_clause window_clause opt_sort_clause opt_select_limit opt_for_locking_clause
Used by (2)
References (10)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
ε
parse_toplevel › PLAssignStmt
BNF PLAssignStmt ::= plassign_target opt_indirection plassign_equals PLpgSQL_Expr
Used by (1)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
PARAM COLON_EQUALS
parse_toplevel › PLAssignStmt › plassign_target
BNF plassign_target ::= ColId
| PARAM
Used by (1)
References (1)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
PARAM
parse_toplevel › PLAssignStmt › plassign_equals
BNF plassign_equals ::= COLON_EQUALS
| '='
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
COLON_EQUALS
parse_toplevel › PLAssignStmt › plassign_target › ColId
BNF ColId ::= IDENT
| unreserved_keyword
| col_name_keyword
Used by (49)
References (2)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateEventTrigStmt › ColLabel
BNF ColLabel ::= IDENT
| unreserved_keyword
| col_name_keyword
| type_func_name_keyword
| reserved_keyword
Used by (14)
References (4)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
IDENT
parse_toplevel › PLAssignStmt › plassign_target › ColId › unreserved_keyword
BNF unreserved_keyword ::= ABORT_P
| ABSENT
| ABSOLUTE_P
| ACCESS
| ACTION
| ADD_P
| ADMIN
| AFTER
| AGGREGATE
| ALSO
| ALTER
| ALWAYS
| ASENSITIVE
| ASSERTION
| ASSIGNMENT
| AT
| ATOMIC
| ATTACH
| ATTRIBUTE
| BACKWARD
| BEFORE
| BEGIN_P
| BREADTH
| BY
| CACHE
| CALL
| CALLED
| CASCADE
| CASCADED
| CATALOG_P
| CHAIN
| CHARACTERISTICS
| CHECKPOINT
| CLASS
| CLOSE
| CLUSTER
| COLUMNS
| COMMENT
| COMMENTS
| COMMIT
| COMMITTED
| COMPRESSION
| CONDITIONAL
| CONFIGURATION
| CONFLICT
| CONNECTION
| CONSTRAINTS
| CONTENT_P
| CONTINUE_P
| CONVERSION_P
| COPY
| COST
| CSV
| CUBE
| CURRENT_P
| CURSOR
| CYCLE
| DATA_P
| DATABASE
| DAY_P
| DEALLOCATE
| DECLARE
| DEFAULTS
| DEFERRED
| DEFINER
| DELETE_P
| DELIMITER
| DELIMITERS
| DEPENDS
| DEPTH
| DETACH
| DICTIONARY
| DISABLE_P
| DISCARD
| DOCUMENT_P
| DOMAIN_P
| DOUBLE_P
| DROP
| EACH
| EMPTY_P
| ENABLE_P
| ENCODING
| ENCRYPTED
| ENUM_P
| ERROR_P
| ESCAPE
| EVENT
| EXCLUDE
| EXCLUDING
| EXCLUSIVE
| EXECUTE
| EXPLAIN
| EXPRESSION
| EXTENSION
| EXTERNAL
| FAMILY
| FILTER
| FINALIZE
| FIRST_P
| FOLLOWING
| FORCE
| FORMAT
| FORWARD
| FUNCTION
| FUNCTIONS
| GENERATED
| GLOBAL
| GRANTED
| GROUPS
| HANDLER
| HEADER_P
| HOLD
| HOUR_P
| IDENTITY_P
| IF_P
| IMMEDIATE
| IMMUTABLE
| IMPLICIT_P
| IMPORT_P
| INCLUDE
| INCLUDING
| INCREMENT
| INDENT
| INDEX
| INDEXES
| INHERIT
| INHERITS
| INLINE_P
| INPUT_P
| INSENSITIVE
| INSERT
| INSTEAD
| INVOKER
| ISOLATION
| KEEP
| KEY
| KEYS
| LABEL
| LANGUAGE
| LARGE_P
| LAST_P
| LEAKPROOF
| LEVEL
| LISTEN
| LOAD
| LOCAL
| LOCATION
| LOCK_P
| LOCKED
| LOGGED
| MAPPING
| MATCH
| MATCHED
| MATERIALIZED
| MAXVALUE
| MERGE
| METHOD
| MINUTE_P
| MINVALUE
| MODE
| MONTH_P
| MOVE
| NAME_P
| NAMES
| NESTED
| NEW
| NEXT
| NFC
| NFD
| NFKC
| NFKD
| NO
| NORMALIZED
| NOTHING
| NOTIFY
| NOWAIT
| NULLS_P
| OBJECT_P
| OF
| OFF
| OIDS
| OLD
| OMIT
| OPERATOR
| OPTION
| OPTIONS
| ORDINALITY
| OTHERS
| OVER
| OVERRIDING
| OWNED
| OWNER
| PARALLEL
| PARAMETER
| PARSER
| PARTIAL
| PARTITION
| PASSING
| PASSWORD
| PATH
| PLAN
| PLANS
| POLICY
| PRECEDING
| PREPARE
| PREPARED
| PRESERVE
| PRIOR
| PRIVILEGES
| PROCEDURAL
| PROCEDURE
| PROCEDURES
| PROGRAM
| PUBLICATION
| QUOTE
| QUOTES
| RANGE
| READ
| REASSIGN
| RECHECK
| RECURSIVE
| REF_P
| REFERENCING
| REFRESH
| REINDEX
| RELATIVE_P
| RELEASE
| RENAME
| REPEATABLE
| REPLACE
| REPLICA
| RESET
| RESTART
| RESTRICT
| RETURN
| RETURNS
| REVOKE
| ROLE
| ROLLBACK
| ROLLUP
| ROUTINE
| ROUTINES
| ROWS
| RULE
| SAVEPOINT
| SCALAR
| SCHEMA
| SCHEMAS
| SCROLL
| SEARCH
| SECOND_P
| SECURITY
| SEQUENCE
| SEQUENCES
| SERIALIZABLE
| SERVER
| SESSION
| SET
| SETS
| SHARE
| SHOW
| SIMPLE
| SKIP
| SNAPSHOT
| SOURCE
| SQL_P
| STABLE
| STANDALONE_P
| START
| STATEMENT
| STATISTICS
| STDIN
| STDOUT
| STORAGE
| STORED
| STRICT_P
| STRING_P
| STRIP_P
| SUBSCRIPTION
| SUPPORT
| SYSID
| SYSTEM_P
| TABLES
| TABLESPACE
| TARGET
| TEMP
| TEMPLATE
| TEMPORARY
| TEXT_P
| TIES
| TRANSACTION
| TRANSFORM
| TRIGGER
| TRUNCATE
| TRUSTED
| TYPE_P
| TYPES_P
| UESCAPE
| UNBOUNDED
| UNCOMMITTED
| UNCONDITIONAL
| UNENCRYPTED
| UNKNOWN
| UNLISTEN
| UNLOGGED
| UNTIL
| UPDATE
| VACUUM
| VALID
| VALIDATE
| VALIDATOR
| VALUE_P
| VARYING
| VERSION_P
| VIEW
| VIEWS
| VOLATILE
| WHITESPACE_P
| WITHIN
| WITHOUT
| WORK
| WRAPPER
| WRITE
| XML_P
| YEAR_P
| YES_P
| ZONE
Used by (4)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
abort
parse_toplevel › PLAssignStmt › plassign_target › ColId › col_name_keyword
BNF col_name_keyword ::= BETWEEN
| BIGINT
| BIT
| BOOLEAN_P
| CHAR_P
| CHARACTER
| COALESCE
| DEC
| DECIMAL_P
| EXISTS
| EXTRACT
| FLOAT_P
| GREATEST
| GROUPING
| INOUT
| INT_P
| INTEGER
| INTERVAL
| JSON
| JSON_ARRAY
| JSON_ARRAYAGG
| JSON_EXISTS
| JSON_OBJECT
| JSON_OBJECTAGG
| JSON_QUERY
| JSON_SCALAR
| JSON_SERIALIZE
| JSON_TABLE
| JSON_VALUE
| LEAST
| MERGE_ACTION
| NATIONAL
| NCHAR
| NONE
| NORMALIZE
| NULLIF
| NUMERIC
| OUT_P
| OVERLAY
| POSITION
| PRECISION
| REAL
| ROW
| SETOF
| SMALLINT
| SUBSTRING
| TIME
| TIMESTAMP
| TREAT
| TRIM
| VALUES
| VARCHAR
| XMLATTRIBUTES
| XMLCONCAT
| XMLELEMENT
| XMLEXISTS
| XMLFOREST
| XMLNAMESPACES
| XMLPARSE
| XMLPI
| XMLROOT
| XMLSERIALIZE
| XMLTABLE
Used by (3)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
between
parse_toplevel › Typename › SimpleTypename › GenericType › type_function_name › type_func_name_keyword
BNF type_func_name_keyword ::= AUTHORIZATION
| BINARY
| COLLATION
| CONCURRENTLY
| CROSS
| CURRENT_SCHEMA
| FREEZE
| FULL
| ILIKE
| INNER_P
| IS
| ISNULL
| JOIN
| LEFT
| LIKE
| NATURAL
| NOTNULL
| OUTER_P
| OVERLAPS
| RIGHT
| SIMILAR
| TABLESAMPLE
| VERBOSE
Used by (4)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
authorization
parse_toplevel › stmtmulti › toplevel_stmt › stmt › CreateEventTrigStmt › ColLabel › reserved_keyword
BNF reserved_keyword ::= ALL
| ANALYSE
| ANALYZE
| AND
| ANY
| ARRAY
| AS
| ASC
| ASYMMETRIC
| BOTH
| CASE
| CAST
| CHECK
| COLLATE
| COLUMN
| CONSTRAINT
| CREATE
| CURRENT_CATALOG
| CURRENT_DATE
| CURRENT_ROLE
| CURRENT_TIME
| CURRENT_TIMESTAMP
| CURRENT_USER
| DEFAULT
| DEFERRABLE
| DESC
| DISTINCT
| DO
| ELSE
| END_P
| EXCEPT
| FALSE_P
| FETCH
| FOR
| FOREIGN
| FROM
| GRANT
| GROUP_P
| HAVING
| IN_P
| INITIALLY
| INTERSECT
| INTO
| LATERAL_P
| LEADING
| LIMIT
| LOCALTIME
| LOCALTIMESTAMP
| NOT
| NULL_P
| OFFSET
| ON
| ONLY
| OR
| ORDER
| PLACING
| PRIMARY
| REFERENCES
| RETURNING
| SELECT
| SESSION_USER
| SOME
| SYMMETRIC
| SYSTEM_USER
| TABLE
| THEN
| TO
| TRAILING
| TRUE_P
| UNION
| UNIQUE
| USER
| USING
| VARIADIC
| WHEN
| WHERE
| WINDOW
| WITH
Used by (3)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
all
parse_toplevel › PLpgSQL_Expr › opt_target_list › target_list › target_el › BareColLabel › bare_label_keyword
BNF bare_label_keyword ::= ABORT_P
| ABSENT
| ABSOLUTE_P
| ACCESS
| ACTION
| ADD_P
| ADMIN
| AFTER
| AGGREGATE
| ALL
| ALSO
| ALTER
| ALWAYS
| ANALYSE
| ANALYZE
| AND
| ANY
| ASC
| ASENSITIVE
| ASSERTION
| ASSIGNMENT
| ASYMMETRIC
| AT
| ATOMIC
| ATTACH
| ATTRIBUTE
| AUTHORIZATION
| BACKWARD
| BEFORE
| BEGIN_P
| BETWEEN
| BIGINT
| BINARY
| BIT
| BOOLEAN_P
| BOTH
| BREADTH
| BY
| CACHE
| CALL
| CALLED
| CASCADE
| CASCADED
| CASE
| CAST
| CATALOG_P
| CHAIN
| CHARACTERISTICS
| CHECK
| CHECKPOINT
| CLASS
| CLOSE
| CLUSTER
| COALESCE
| COLLATE
| COLLATION
| COLUMN
| COLUMNS
| COMMENT
| COMMENTS
| COMMIT
| COMMITTED
| COMPRESSION
| CONCURRENTLY
| CONDITIONAL
| CONFIGURATION
| CONFLICT
| CONNECTION
| CONSTRAINT
| CONSTRAINTS
| CONTENT_P
| CONTINUE_P
| CONVERSION_P
| COPY
| COST
| CROSS
| CSV
| CUBE
| CURRENT_P
| CURRENT_CATALOG
| CURRENT_DATE
| CURRENT_ROLE
| CURRENT_SCHEMA
| CURRENT_TIME
| CURRENT_TIMESTAMP
| CURRENT_USER
| CURSOR
| CYCLE
| DATA_P
| DATABASE
| DEALLOCATE
| DEC
| DECIMAL_P
| DECLARE
| DEFAULT
| DEFAULTS
| DEFERRABLE
| DEFERRED
| DEFINER
| DELETE_P
| DELIMITER
| DELIMITERS
| DEPENDS
| DEPTH
| DESC
| DETACH
| DICTIONARY
| DISABLE_P
| DISCARD
| DISTINCT
| DO
| DOCUMENT_P
| DOMAIN_P
| DOUBLE_P
| DROP
| EACH
| ELSE
| EMPTY_P
| ENABLE_P
| ENCODING
| ENCRYPTED
| END_P
| ENUM_P
| ERROR_P
| ESCAPE
| EVENT
| EXCLUDE
| EXCLUDING
| EXCLUSIVE
| EXECUTE
| EXISTS
| EXPLAIN
| EXPRESSION
| EXTENSION
| EXTERNAL
| EXTRACT
| FALSE_P
| FAMILY
| FINALIZE
| FIRST_P
| FLOAT_P
| FOLLOWING
| FORCE
| FOREIGN
| FORMAT
| FORWARD
| FREEZE
| FULL
| FUNCTION
| FUNCTIONS
| GENERATED
| GLOBAL
| GRANTED
| GREATEST
| GROUPING
| GROUPS
| HANDLER
| HEADER_P
| HOLD
| IDENTITY_P
| IF_P
| ILIKE
| IMMEDIATE
| IMMUTABLE
| IMPLICIT_P
| IMPORT_P
| IN_P
| INCLUDE
| INCLUDING
| INCREMENT
| INDENT
| INDEX
| INDEXES
| INHERIT
| INHERITS
| INITIALLY
| INLINE_P
| INNER_P
| INOUT
| INPUT_P
| INSENSITIVE
| INSERT
| INSTEAD
| INT_P
| INTEGER
| INTERVAL
| INVOKER
| IS
| ISOLATION
| JOIN
| JSON
| JSON_ARRAY
| JSON_ARRAYAGG
| JSON_EXISTS
| JSON_OBJECT
| JSON_OBJECTAGG
| JSON_QUERY
| JSON_SCALAR
| JSON_SERIALIZE
| JSON_TABLE
| JSON_VALUE
| KEEP
| KEY
| KEYS
| LABEL
| LANGUAGE
| LARGE_P
| LAST_P
| LATERAL_P
| LEADING
| LEAKPROOF
| LEAST
| LEFT
| LEVEL
| LIKE
| LISTEN
| LOAD
| LOCAL
| LOCALTIME
| LOCALTIMESTAMP
| LOCATION
| LOCK_P
| LOCKED
| LOGGED
| MAPPING
| MATCH
| MATCHED
| MATERIALIZED
| MAXVALUE
| MERGE
| MERGE_ACTION
| METHOD
| MINVALUE
| MODE
| MOVE
| NAME_P
| NAMES
| NATIONAL
| NATURAL
| NCHAR
| NESTED
| NEW
| NEXT
| NFC
| NFD
| NFKC
| NFKD
| NO
| NONE
| NORMALIZE
| NORMALIZED
| NOT
| NOTHING
| NOTIFY
| NOWAIT
| NULL_P
| NULLIF
| NULLS_P
| NUMERIC
| OBJECT_P
| OF
| OFF
| OIDS
| OLD
| OMIT
| ONLY
| OPERATOR
| OPTION
| OPTIONS
| OR
| ORDINALITY
| OTHERS
| OUT_P
| OUTER_P
| OVERLAY
| OVERRIDING
| OWNED
| OWNER
| PARALLEL
| PARAMETER
| PARSER
| PARTIAL
| PARTITION
| PASSING
| PASSWORD
| PATH
| PLACING
| PLAN
| PLANS
| POLICY
| POSITION
| PRECEDING
| PREPARE
| PREPARED
| PRESERVE
| PRIMARY
| PRIOR
| PRIVILEGES
| PROCEDURAL
| PROCEDURE
| PROCEDURES
| PROGRAM
| PUBLICATION
| QUOTE
| QUOTES
| RANGE
| READ
| REAL
| REASSIGN
| RECHECK
| RECURSIVE
| REF_P
| REFERENCES
| REFERENCING
| REFRESH
| REINDEX
| RELATIVE_P
| RELEASE
| RENAME
| REPEATABLE
| REPLACE
| REPLICA
| RESET
| RESTART
| RESTRICT
| RETURN
| RETURNS
| REVOKE
| RIGHT
| ROLE
| ROLLBACK
| ROLLUP
| ROUTINE
| ROUTINES
| ROW
| ROWS
| RULE
| SAVEPOINT
| SCALAR
| SCHEMA
| SCHEMAS
| SCROLL
| SEARCH
| SECURITY
| SELECT
| SEQUENCE
| SEQUENCES
| SERIALIZABLE
| SERVER
| SESSION
| SESSION_USER
| SET
| SETOF
| SETS
| SHARE
| SHOW
| SIMILAR
| SIMPLE
| SKIP
| SMALLINT
| SNAPSHOT
| SOME
| SOURCE
| SQL_P
| STABLE
| STANDALONE_P
| START
| STATEMENT
| STATISTICS
| STDIN
| STDOUT
| STORAGE
| STORED
| STRICT_P
| STRING_P
| STRIP_P
| SUBSCRIPTION
| SUBSTRING
| SUPPORT
| SYMMETRIC
| SYSID
| SYSTEM_P
| SYSTEM_USER
| TABLE
| TABLES
| TABLESAMPLE
| TABLESPACE
| TARGET
| TEMP
| TEMPLATE
| TEMPORARY
| TEXT_P
| THEN
| TIES
| TIME
| TIMESTAMP
| TRAILING
| TRANSACTION
| TRANSFORM
| TREAT
| TRIGGER
| TRIM
| TRUE_P
| TRUNCATE
| TRUSTED
| TYPE_P
| TYPES_P
| UESCAPE
| UNBOUNDED
| UNCOMMITTED
| UNCONDITIONAL
| UNENCRYPTED
| UNIQUE
| UNKNOWN
| UNLISTEN
| UNLOGGED
| UNTIL
| UPDATE
| USER
| USING
| VACUUM
| VALID
| VALIDATE
| VALIDATOR
| VALUE_P
| VALUES
| VARCHAR
| VARIADIC
| VERBOSE
| VERSION_P
| VIEW
| VIEWS
| VOLATILE
| WHEN
| WHITESPACE_P
| WORK
| WRAPPER
| WRITE
| XML_P
| XMLATTRIBUTES
| XMLCONCAT
| XMLELEMENT
| XMLEXISTS
| XMLFOREST
| XMLNAMESPACES
| XMLPARSE
| XMLPI
| XMLROOT
| XMLSERIALIZE
| XMLTABLE
| YES_P
| ZONE
Used by (1)
References (0)
Shortest derivation This is a token sequence derived from the grammar. It may require lexer context or semantic checks to be valid code.
abort