feat: pgsql: optimize drop rule's content

This commit is contained in:
zhaoge 2023-11-17 16:32:53 +08:00 committed by Hayden
parent 4736a65e0c
commit adeb26b7df
6 changed files with 18540 additions and 19536 deletions

View File

@ -127,19 +127,7 @@ stmt:
| deletestmt | deletestmt
| discardstmt | discardstmt
| dostmt | dostmt
| dropcaststmt
| dropopclassstmt
| dropopfamilystmt
| dropownedstmt
| dropviewstmt
| dropschemastmt
| dropstmt | dropstmt
| dropsubscriptionstmt
| droptablespacestmt
| droptransformstmt
| droprolestmt
| dropusermappingstmt
| dropdbstmt
| executestmt | executestmt
| explainstmt | explainstmt
| fetchstmt | fetchstmt
@ -251,9 +239,6 @@ routine_action: KW_IMMUTABLE | KW_STABLE | KW_VOLATILE
| KW_RESET name | KW_RESET name
| KW_RESET KW_ALL; | KW_RESET KW_ALL;
droprolestmt:
KW_DROP (KW_ROLE | KW_USER | KW_GROUP) opt_if_exists? role_list;
creategroupstmt: KW_CREATE KW_GROUP groupname opt_with? optrolelist; creategroupstmt: KW_CREATE KW_GROUP groupname opt_with? optrolelist;
altergroupstmt: KW_ALTER KW_GROUP rolespec add_drop KW_USER role_list; altergroupstmt: KW_ALTER KW_GROUP rolespec add_drop KW_USER role_list;
@ -821,8 +806,6 @@ createtablespacestmt:
opttablespaceowner: KW_OWNER rolespec; opttablespaceowner: KW_OWNER rolespec;
droptablespacestmt: KW_DROP KW_TABLESPACE opt_if_exists? tablespace_name;
createextensionstmt: createextensionstmt:
KW_CREATE KW_EXTENSION opt_if_not_exists? name opt_with? create_extension_opt_list; KW_CREATE KW_EXTENSION opt_if_not_exists? name opt_with? create_extension_opt_list;
@ -933,9 +916,6 @@ createusermappingstmt:
auth_ident: rolespec | KW_USER; auth_ident: rolespec | KW_USER;
dropusermappingstmt:
KW_DROP KW_USER KW_MAPPING opt_if_exists? KW_FOR auth_ident KW_SERVER name;
alterusermappingstmt: alterusermappingstmt:
KW_ALTER KW_USER KW_MAPPING KW_FOR auth_ident KW_SERVER name alter_generic_options; KW_ALTER KW_USER KW_MAPPING KW_FOR auth_ident KW_SERVER name alter_generic_options;
@ -1152,18 +1132,22 @@ opclass_drop:
KW_OPERATOR iconst OPEN_PAREN type_list CLOSE_PAREN KW_OPERATOR iconst OPEN_PAREN type_list CLOSE_PAREN
| KW_FUNCTION iconst OPEN_PAREN type_list CLOSE_PAREN; | KW_FUNCTION iconst OPEN_PAREN type_list CLOSE_PAREN;
dropopclassstmt:
KW_DROP KW_OPERATOR KW_CLASS opt_if_exists? any_name KW_USING name opt_drop_behavior?;
dropopfamilystmt:
KW_DROP KW_OPERATOR KW_FAMILY opt_if_exists? any_name KW_USING name opt_drop_behavior?;
dropownedstmt: KW_DROP KW_OWNED KW_BY role_list opt_drop_behavior?;
reassignownedstmt: KW_REASSIGN KW_OWNED KW_BY role_list KW_TO rolespec; reassignownedstmt: KW_REASSIGN KW_OWNED KW_BY role_list KW_TO rolespec;
dropstmt: dropstmt:
KW_DROP object_type_any_name_list opt_drop_behavior? KW_DROP KW_TABLE opt_if_exists? table_name_list opt_drop_behavior?
| KW_DROP KW_SEQUENCE opt_if_exists? name_list opt_drop_behavior?
| KW_DROP KW_VIEW opt_if_exists? view_nameList opt_drop_behavior?
| KW_DROP KW_MATERIALIZED KW_VIEW opt_if_exists? view_nameList opt_drop_behavior?
| KW_DROP KW_INDEX opt_if_exists? name_list opt_drop_behavior?
| KW_DROP KW_FOREIGN KW_TABLE opt_if_exists? table_name_list opt_drop_behavior?
| KW_DROP KW_COLLATION opt_if_exists? name_list opt_drop_behavior?
| KW_DROP KW_CONVERSION opt_if_exists? name_list opt_drop_behavior?
| KW_DROP KW_STATISTICS opt_if_exists? name_list opt_drop_behavior?
| KW_DROP KW_TEXT KW_SEARCH KW_PARSER opt_if_exists? name_list opt_drop_behavior?
| KW_DROP KW_TEXT KW_SEARCH KW_DICTIONARY opt_if_exists? name_list opt_drop_behavior?
| KW_DROP KW_TEXT KW_SEARCH KW_TEMPLATE opt_if_exists? name_list opt_drop_behavior?
| KW_DROP KW_TEXT KW_SEARCH KW_CONFIGURATION opt_if_exists? name_list opt_drop_behavior?
| KW_DROP KW_ACCESS KW_METHOD opt_if_exists? name_list opt_drop_behavior? | KW_DROP KW_ACCESS KW_METHOD opt_if_exists? name_list opt_drop_behavior?
| KW_DROP KW_EVENT KW_TRIGGER opt_if_exists? name_list opt_drop_behavior? | KW_DROP KW_EVENT KW_TRIGGER opt_if_exists? name_list opt_drop_behavior?
| KW_DROP KW_EXTENSION opt_if_exists? name_list opt_drop_behavior? | KW_DROP KW_EXTENSION opt_if_exists? name_list opt_drop_behavior?
@ -1172,34 +1156,28 @@ dropstmt:
| KW_DROP KW_PUBLICATION opt_if_exists? name_list opt_drop_behavior? | KW_DROP KW_PUBLICATION opt_if_exists? name_list opt_drop_behavior?
| KW_DROP KW_SERVER opt_if_exists? name_list opt_drop_behavior? | KW_DROP KW_SERVER opt_if_exists? name_list opt_drop_behavior?
| KW_DROP KW_SCHEMA opt_if_exists? schema_name_list opt_drop_behavior? | KW_DROP KW_SCHEMA opt_if_exists? schema_name_list opt_drop_behavior?
| KW_DROP object_type_name_on_any_name opt_if_exists? name KW_ON any_name opt_drop_behavior? | KW_DROP KW_POLICY opt_if_exists? name KW_ON any_name opt_drop_behavior?
| KW_DROP KW_RULE opt_if_exists? name KW_ON any_name opt_drop_behavior?
| KW_DROP KW_TRIGGER opt_if_exists? name KW_ON any_name opt_drop_behavior?
| KW_DROP KW_TYPE opt_if_exists? type_name_list opt_drop_behavior? | KW_DROP KW_TYPE opt_if_exists? type_name_list opt_drop_behavior?
| KW_DROP KW_DOMAIN opt_if_exists? type_name_list opt_drop_behavior? | KW_DROP KW_DOMAIN opt_if_exists? type_name_list opt_drop_behavior?
| KW_DROP KW_INDEX KW_CONCURRENTLY opt_if_exists? any_name_list opt_drop_behavior?; | KW_DROP KW_INDEX KW_CONCURRENTLY opt_if_exists? any_name_list opt_drop_behavior?
| KW_DROP KW_CAST opt_if_exists? OPEN_PAREN typename KW_AS typename CLOSE_PAREN opt_drop_behavior?
dropviewstmt: | KW_DROP KW_OPERATOR KW_CLASS opt_if_exists? any_name KW_USING name opt_drop_behavior?
KW_DROP KW_VIEW opt_if_exists? view_nameList opt_drop_behavior?; | KW_DROP KW_OPERATOR KW_FAMILY opt_if_exists? any_name KW_USING name opt_drop_behavior?
| KW_DROP KW_OWNED KW_BY role_list opt_drop_behavior?
| KW_DROP KW_VIEW opt_if_exists? view_nameList opt_drop_behavior?
| KW_DROP KW_SUBSCRIPTION opt_if_exists? name opt_drop_behavior?
| KW_DROP KW_TABLESPACE opt_if_exists? tablespace_name
| KW_DROP KW_TRANSFORM opt_if_exists? KW_FOR typename KW_LANGUAGE name opt_drop_behavior?
| KW_DROP (KW_ROLE | KW_USER | KW_GROUP) opt_if_exists? role_list
| KW_DROP KW_USER KW_MAPPING opt_if_exists? KW_FOR auth_ident KW_SERVER name
| KW_DROP KW_DATABASE opt_if_exists? database_name (
opt_with? OPEN_PAREN drop_option_list CLOSE_PAREN
)?;
view_nameList: view_name (COMMA view_name)*; view_nameList: view_name (COMMA view_name)*;
dropschemastmt:
KW_DROP KW_SCHEMA opt_if_exists? schema_name (COMMA schema_name)* opt_drop_behavior?;
object_type_any_name_list:
KW_TABLE opt_if_exists? table_name_list
| KW_SEQUENCE opt_if_exists? name_list
| KW_VIEW opt_if_exists? view_nameList
| KW_MATERIALIZED KW_VIEW opt_if_exists? view_nameList
| KW_INDEX opt_if_exists? name_list
| KW_FOREIGN KW_TABLE opt_if_exists? table_name_list
| KW_COLLATION opt_if_exists? name_list
| KW_CONVERSION opt_if_exists? name_list
| KW_STATISTICS opt_if_exists? name_list
| KW_TEXT KW_SEARCH KW_PARSER opt_if_exists? name_list
| KW_TEXT KW_SEARCH KW_DICTIONARY opt_if_exists? name_list
| KW_TEXT KW_SEARCH KW_TEMPLATE opt_if_exists? name_list
| KW_TEXT KW_SEARCH KW_CONFIGURATION opt_if_exists? name_list;
object_type_any_name: object_type_any_name:
KW_TABLE table_name KW_TABLE table_name
| KW_SEQUENCE any_name | KW_SEQUENCE any_name
@ -1253,9 +1231,10 @@ commentstmt:
| KW_COMMENT KW_ON KW_AGGREGATE aggregate_with_argtypes KW_IS comment_text | KW_COMMENT KW_ON KW_AGGREGATE aggregate_with_argtypes KW_IS comment_text
| KW_COMMENT KW_ON KW_FUNCTION function_with_argtypes KW_IS comment_text | KW_COMMENT KW_ON KW_FUNCTION function_with_argtypes KW_IS comment_text
| KW_COMMENT KW_ON KW_OPERATOR operator_with_argtypes KW_IS comment_text | KW_COMMENT KW_ON KW_OPERATOR operator_with_argtypes KW_IS comment_text
| KW_COMMENT KW_ON KW_CONSTRAINT name KW_ON any_name KW_IS comment_text | KW_COMMENT KW_ON KW_CONSTRAINT name KW_ON KW_DOMAIN? any_name KW_IS comment_text
| KW_COMMENT KW_ON KW_CONSTRAINT name KW_ON KW_DOMAIN any_name KW_IS comment_text | KW_COMMENT KW_ON KW_POLICY name KW_ON any_name KW_IS comment_text
| KW_COMMENT KW_ON object_type_name_on_any_name name KW_ON any_name KW_IS comment_text | KW_COMMENT KW_ON KW_RULE name KW_ON any_name KW_IS comment_text
| KW_COMMENT KW_ON KW_TRIGGER name KW_ON any_name KW_IS comment_text
| KW_COMMENT KW_ON KW_PROCEDURE procedure_with_argtypes KW_IS comment_text | KW_COMMENT KW_ON KW_PROCEDURE procedure_with_argtypes KW_IS comment_text
| KW_COMMENT KW_ON KW_ROUTINE function_with_argtypes KW_IS comment_text | KW_COMMENT KW_ON KW_ROUTINE function_with_argtypes KW_IS comment_text
| KW_COMMENT KW_ON KW_TRANSFORM KW_FOR typename KW_LANGUAGE name KW_IS comment_text | KW_COMMENT KW_ON KW_TRANSFORM KW_FOR typename KW_LANGUAGE name KW_IS comment_text
@ -1625,9 +1604,6 @@ createcaststmt:
cast_context: KW_AS KW_IMPLICIT | KW_AS KW_ASSIGNMENT; cast_context: KW_AS KW_IMPLICIT | KW_AS KW_ASSIGNMENT;
dropcaststmt:
KW_DROP KW_CAST opt_if_exists? OPEN_PAREN typename KW_AS typename CLOSE_PAREN opt_drop_behavior?;
opt_if_exists: KW_IF KW_EXISTS; opt_if_exists: KW_IF KW_EXISTS;
createtransformstmt: createtransformstmt:
@ -1642,9 +1618,6 @@ transform_element_list:
| KW_FROM KW_SQL KW_WITH KW_FUNCTION function_with_argtypes | KW_FROM KW_SQL KW_WITH KW_FUNCTION function_with_argtypes
| KW_TO KW_SQL KW_WITH KW_FUNCTION function_with_argtypes; | KW_TO KW_SQL KW_WITH KW_FUNCTION function_with_argtypes;
droptransformstmt:
KW_DROP KW_TRANSFORM opt_if_exists? KW_FOR typename KW_LANGUAGE name opt_drop_behavior?;
reindexstmt: reindexstmt:
KW_REINDEX reindex_target_type KW_REINDEX reindex_target_type
| KW_REINDEX reindex_target_multitable | KW_REINDEX reindex_target_multitable
@ -1830,8 +1803,6 @@ altersubscriptionstmt:
| KW_ALTER KW_SUBSCRIPTION name KW_SKIP OPEN_PAREN old_aggr_elem CLOSE_PAREN | KW_ALTER KW_SUBSCRIPTION name KW_SKIP OPEN_PAREN old_aggr_elem CLOSE_PAREN
| KW_ALTER KW_SUBSCRIPTION name KW_OWNER KW_TO rolespec; | KW_ALTER KW_SUBSCRIPTION name KW_OWNER KW_TO rolespec;
dropsubscriptionstmt:
KW_DROP KW_SUBSCRIPTION opt_if_exists? name opt_drop_behavior?;
rulestmt: rulestmt:
KW_CREATE opt_or_replace? KW_RULE name KW_AS KW_ON event KW_TO qualified_name where_clause? KW_DO opt_instead? KW_CREATE opt_or_replace? KW_RULE name KW_AS KW_ON event KW_TO qualified_name where_clause? KW_DO opt_instead?
@ -1941,11 +1912,6 @@ alterdatabasestmt:
alterdatabasesetstmt: KW_ALTER KW_DATABASE database_name setresetclause?; alterdatabasesetstmt: KW_ALTER KW_DATABASE database_name setresetclause?;
dropdbstmt:
KW_DROP KW_DATABASE opt_if_exists? database_name (
opt_with? OPEN_PAREN drop_option_list CLOSE_PAREN
)?;
drop_option_list: drop_option (COMMA drop_option)*; drop_option_list: drop_option (COMMA drop_option)*;
drop_option: KW_FORCE; drop_option: KW_FORCE;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -33,7 +33,6 @@ import { AlterroutinestmtContext } from "./PostgreSQLParser";
import { Alter_routine_cluaseContext } from "./PostgreSQLParser"; import { Alter_routine_cluaseContext } from "./PostgreSQLParser";
import { Routine_action_listContext } from "./PostgreSQLParser"; import { Routine_action_listContext } from "./PostgreSQLParser";
import { Routine_actionContext } from "./PostgreSQLParser"; import { Routine_actionContext } from "./PostgreSQLParser";
import { DroprolestmtContext } from "./PostgreSQLParser";
import { CreategroupstmtContext } from "./PostgreSQLParser"; import { CreategroupstmtContext } from "./PostgreSQLParser";
import { AltergroupstmtContext } from "./PostgreSQLParser"; import { AltergroupstmtContext } from "./PostgreSQLParser";
import { Add_dropContext } from "./PostgreSQLParser"; import { Add_dropContext } from "./PostgreSQLParser";
@ -183,7 +182,6 @@ import { Opt_validatorContext } from "./PostgreSQLParser";
import { Opt_proceduralContext } from "./PostgreSQLParser"; import { Opt_proceduralContext } from "./PostgreSQLParser";
import { CreatetablespacestmtContext } from "./PostgreSQLParser"; import { CreatetablespacestmtContext } from "./PostgreSQLParser";
import { OpttablespaceownerContext } from "./PostgreSQLParser"; import { OpttablespaceownerContext } from "./PostgreSQLParser";
import { DroptablespacestmtContext } from "./PostgreSQLParser";
import { CreateextensionstmtContext } from "./PostgreSQLParser"; import { CreateextensionstmtContext } from "./PostgreSQLParser";
import { Create_extension_opt_listContext } from "./PostgreSQLParser"; import { Create_extension_opt_listContext } from "./PostgreSQLParser";
import { Create_extension_opt_itemContext } from "./PostgreSQLParser"; import { Create_extension_opt_itemContext } from "./PostgreSQLParser";
@ -215,7 +213,6 @@ import { Import_qualification_typeContext } from "./PostgreSQLParser";
import { Import_qualificationContext } from "./PostgreSQLParser"; import { Import_qualificationContext } from "./PostgreSQLParser";
import { CreateusermappingstmtContext } from "./PostgreSQLParser"; import { CreateusermappingstmtContext } from "./PostgreSQLParser";
import { Auth_identContext } from "./PostgreSQLParser"; import { Auth_identContext } from "./PostgreSQLParser";
import { DropusermappingstmtContext } from "./PostgreSQLParser";
import { AlterusermappingstmtContext } from "./PostgreSQLParser"; import { AlterusermappingstmtContext } from "./PostgreSQLParser";
import { CreatepolicystmtContext } from "./PostgreSQLParser"; import { CreatepolicystmtContext } from "./PostgreSQLParser";
import { AlterpolicystmtContext } from "./PostgreSQLParser"; import { AlterpolicystmtContext } from "./PostgreSQLParser";
@ -283,15 +280,9 @@ import { CreateopfamilystmtContext } from "./PostgreSQLParser";
import { AlteropfamilystmtContext } from "./PostgreSQLParser"; import { AlteropfamilystmtContext } from "./PostgreSQLParser";
import { Opclass_drop_listContext } from "./PostgreSQLParser"; import { Opclass_drop_listContext } from "./PostgreSQLParser";
import { Opclass_dropContext } from "./PostgreSQLParser"; import { Opclass_dropContext } from "./PostgreSQLParser";
import { DropopclassstmtContext } from "./PostgreSQLParser";
import { DropopfamilystmtContext } from "./PostgreSQLParser";
import { DropownedstmtContext } from "./PostgreSQLParser";
import { ReassignownedstmtContext } from "./PostgreSQLParser"; import { ReassignownedstmtContext } from "./PostgreSQLParser";
import { DropstmtContext } from "./PostgreSQLParser"; import { DropstmtContext } from "./PostgreSQLParser";
import { DropviewstmtContext } from "./PostgreSQLParser";
import { View_nameListContext } from "./PostgreSQLParser"; import { View_nameListContext } from "./PostgreSQLParser";
import { DropschemastmtContext } from "./PostgreSQLParser";
import { Object_type_any_name_listContext } from "./PostgreSQLParser";
import { Object_type_any_nameContext } from "./PostgreSQLParser"; import { Object_type_any_nameContext } from "./PostgreSQLParser";
import { Object_type_nameContext } from "./PostgreSQLParser"; import { Object_type_nameContext } from "./PostgreSQLParser";
import { Object_type_name_on_any_nameContext } from "./PostgreSQLParser"; import { Object_type_name_on_any_nameContext } from "./PostgreSQLParser";
@ -391,11 +382,9 @@ import { Dostmt_opt_listContext } from "./PostgreSQLParser";
import { Dostmt_opt_itemContext } from "./PostgreSQLParser"; import { Dostmt_opt_itemContext } from "./PostgreSQLParser";
import { CreatecaststmtContext } from "./PostgreSQLParser"; import { CreatecaststmtContext } from "./PostgreSQLParser";
import { Cast_contextContext } from "./PostgreSQLParser"; import { Cast_contextContext } from "./PostgreSQLParser";
import { DropcaststmtContext } from "./PostgreSQLParser";
import { Opt_if_existsContext } from "./PostgreSQLParser"; import { Opt_if_existsContext } from "./PostgreSQLParser";
import { CreatetransformstmtContext } from "./PostgreSQLParser"; import { CreatetransformstmtContext } from "./PostgreSQLParser";
import { Transform_element_listContext } from "./PostgreSQLParser"; import { Transform_element_listContext } from "./PostgreSQLParser";
import { DroptransformstmtContext } from "./PostgreSQLParser";
import { ReindexstmtContext } from "./PostgreSQLParser"; import { ReindexstmtContext } from "./PostgreSQLParser";
import { Reindex_target_typeContext } from "./PostgreSQLParser"; import { Reindex_target_typeContext } from "./PostgreSQLParser";
import { Reindex_target_multitableContext } from "./PostgreSQLParser"; import { Reindex_target_multitableContext } from "./PostgreSQLParser";
@ -422,7 +411,6 @@ import { CreatesubscriptionstmtContext } from "./PostgreSQLParser";
import { Publication_name_listContext } from "./PostgreSQLParser"; import { Publication_name_listContext } from "./PostgreSQLParser";
import { Publication_name_itemContext } from "./PostgreSQLParser"; import { Publication_name_itemContext } from "./PostgreSQLParser";
import { AltersubscriptionstmtContext } from "./PostgreSQLParser"; import { AltersubscriptionstmtContext } from "./PostgreSQLParser";
import { DropsubscriptionstmtContext } from "./PostgreSQLParser";
import { RulestmtContext } from "./PostgreSQLParser"; import { RulestmtContext } from "./PostgreSQLParser";
import { RuleactionlistContext } from "./PostgreSQLParser"; import { RuleactionlistContext } from "./PostgreSQLParser";
import { RuleactionmultiContext } from "./PostgreSQLParser"; import { RuleactionmultiContext } from "./PostgreSQLParser";
@ -451,7 +439,6 @@ import { Createdb_opt_nameContext } from "./PostgreSQLParser";
import { Opt_equalContext } from "./PostgreSQLParser"; import { Opt_equalContext } from "./PostgreSQLParser";
import { AlterdatabasestmtContext } from "./PostgreSQLParser"; import { AlterdatabasestmtContext } from "./PostgreSQLParser";
import { AlterdatabasesetstmtContext } from "./PostgreSQLParser"; import { AlterdatabasesetstmtContext } from "./PostgreSQLParser";
import { DropdbstmtContext } from "./PostgreSQLParser";
import { Drop_option_listContext } from "./PostgreSQLParser"; import { Drop_option_listContext } from "./PostgreSQLParser";
import { Drop_optionContext } from "./PostgreSQLParser"; import { Drop_optionContext } from "./PostgreSQLParser";
import { AltercollationstmtContext } from "./PostgreSQLParser"; import { AltercollationstmtContext } from "./PostgreSQLParser";
@ -1242,17 +1229,6 @@ export interface PostgreSQLParserListener extends ParseTreeListener {
*/ */
exitRoutine_action?: (ctx: Routine_actionContext) => void; exitRoutine_action?: (ctx: Routine_actionContext) => void;
/**
* Enter a parse tree produced by `PostgreSQLParser.droprolestmt`.
* @param ctx the parse tree
*/
enterDroprolestmt?: (ctx: DroprolestmtContext) => void;
/**
* Exit a parse tree produced by `PostgreSQLParser.droprolestmt`.
* @param ctx the parse tree
*/
exitDroprolestmt?: (ctx: DroprolestmtContext) => void;
/** /**
* Enter a parse tree produced by `PostgreSQLParser.creategroupstmt`. * Enter a parse tree produced by `PostgreSQLParser.creategroupstmt`.
* @param ctx the parse tree * @param ctx the parse tree
@ -2892,17 +2868,6 @@ export interface PostgreSQLParserListener extends ParseTreeListener {
*/ */
exitOpttablespaceowner?: (ctx: OpttablespaceownerContext) => void; exitOpttablespaceowner?: (ctx: OpttablespaceownerContext) => void;
/**
* Enter a parse tree produced by `PostgreSQLParser.droptablespacestmt`.
* @param ctx the parse tree
*/
enterDroptablespacestmt?: (ctx: DroptablespacestmtContext) => void;
/**
* Exit a parse tree produced by `PostgreSQLParser.droptablespacestmt`.
* @param ctx the parse tree
*/
exitDroptablespacestmt?: (ctx: DroptablespacestmtContext) => void;
/** /**
* Enter a parse tree produced by `PostgreSQLParser.createextensionstmt`. * Enter a parse tree produced by `PostgreSQLParser.createextensionstmt`.
* @param ctx the parse tree * @param ctx the parse tree
@ -3244,17 +3209,6 @@ export interface PostgreSQLParserListener extends ParseTreeListener {
*/ */
exitAuth_ident?: (ctx: Auth_identContext) => void; exitAuth_ident?: (ctx: Auth_identContext) => void;
/**
* Enter a parse tree produced by `PostgreSQLParser.dropusermappingstmt`.
* @param ctx the parse tree
*/
enterDropusermappingstmt?: (ctx: DropusermappingstmtContext) => void;
/**
* Exit a parse tree produced by `PostgreSQLParser.dropusermappingstmt`.
* @param ctx the parse tree
*/
exitDropusermappingstmt?: (ctx: DropusermappingstmtContext) => void;
/** /**
* Enter a parse tree produced by `PostgreSQLParser.alterusermappingstmt`. * Enter a parse tree produced by `PostgreSQLParser.alterusermappingstmt`.
* @param ctx the parse tree * @param ctx the parse tree
@ -3992,39 +3946,6 @@ export interface PostgreSQLParserListener extends ParseTreeListener {
*/ */
exitOpclass_drop?: (ctx: Opclass_dropContext) => void; exitOpclass_drop?: (ctx: Opclass_dropContext) => void;
/**
* Enter a parse tree produced by `PostgreSQLParser.dropopclassstmt`.
* @param ctx the parse tree
*/
enterDropopclassstmt?: (ctx: DropopclassstmtContext) => void;
/**
* Exit a parse tree produced by `PostgreSQLParser.dropopclassstmt`.
* @param ctx the parse tree
*/
exitDropopclassstmt?: (ctx: DropopclassstmtContext) => void;
/**
* Enter a parse tree produced by `PostgreSQLParser.dropopfamilystmt`.
* @param ctx the parse tree
*/
enterDropopfamilystmt?: (ctx: DropopfamilystmtContext) => void;
/**
* Exit a parse tree produced by `PostgreSQLParser.dropopfamilystmt`.
* @param ctx the parse tree
*/
exitDropopfamilystmt?: (ctx: DropopfamilystmtContext) => void;
/**
* Enter a parse tree produced by `PostgreSQLParser.dropownedstmt`.
* @param ctx the parse tree
*/
enterDropownedstmt?: (ctx: DropownedstmtContext) => void;
/**
* Exit a parse tree produced by `PostgreSQLParser.dropownedstmt`.
* @param ctx the parse tree
*/
exitDropownedstmt?: (ctx: DropownedstmtContext) => void;
/** /**
* Enter a parse tree produced by `PostgreSQLParser.reassignownedstmt`. * Enter a parse tree produced by `PostgreSQLParser.reassignownedstmt`.
* @param ctx the parse tree * @param ctx the parse tree
@ -4047,17 +3968,6 @@ export interface PostgreSQLParserListener extends ParseTreeListener {
*/ */
exitDropstmt?: (ctx: DropstmtContext) => void; exitDropstmt?: (ctx: DropstmtContext) => void;
/**
* Enter a parse tree produced by `PostgreSQLParser.dropviewstmt`.
* @param ctx the parse tree
*/
enterDropviewstmt?: (ctx: DropviewstmtContext) => void;
/**
* Exit a parse tree produced by `PostgreSQLParser.dropviewstmt`.
* @param ctx the parse tree
*/
exitDropviewstmt?: (ctx: DropviewstmtContext) => void;
/** /**
* Enter a parse tree produced by `PostgreSQLParser.view_nameList`. * Enter a parse tree produced by `PostgreSQLParser.view_nameList`.
* @param ctx the parse tree * @param ctx the parse tree
@ -4069,28 +3979,6 @@ export interface PostgreSQLParserListener extends ParseTreeListener {
*/ */
exitView_nameList?: (ctx: View_nameListContext) => void; exitView_nameList?: (ctx: View_nameListContext) => void;
/**
* Enter a parse tree produced by `PostgreSQLParser.dropschemastmt`.
* @param ctx the parse tree
*/
enterDropschemastmt?: (ctx: DropschemastmtContext) => void;
/**
* Exit a parse tree produced by `PostgreSQLParser.dropschemastmt`.
* @param ctx the parse tree
*/
exitDropschemastmt?: (ctx: DropschemastmtContext) => void;
/**
* Enter a parse tree produced by `PostgreSQLParser.object_type_any_name_list`.
* @param ctx the parse tree
*/
enterObject_type_any_name_list?: (ctx: Object_type_any_name_listContext) => void;
/**
* Exit a parse tree produced by `PostgreSQLParser.object_type_any_name_list`.
* @param ctx the parse tree
*/
exitObject_type_any_name_list?: (ctx: Object_type_any_name_listContext) => void;
/** /**
* Enter a parse tree produced by `PostgreSQLParser.object_type_any_name`. * Enter a parse tree produced by `PostgreSQLParser.object_type_any_name`.
* @param ctx the parse tree * @param ctx the parse tree
@ -5180,17 +5068,6 @@ export interface PostgreSQLParserListener extends ParseTreeListener {
*/ */
exitCast_context?: (ctx: Cast_contextContext) => void; exitCast_context?: (ctx: Cast_contextContext) => void;
/**
* Enter a parse tree produced by `PostgreSQLParser.dropcaststmt`.
* @param ctx the parse tree
*/
enterDropcaststmt?: (ctx: DropcaststmtContext) => void;
/**
* Exit a parse tree produced by `PostgreSQLParser.dropcaststmt`.
* @param ctx the parse tree
*/
exitDropcaststmt?: (ctx: DropcaststmtContext) => void;
/** /**
* Enter a parse tree produced by `PostgreSQLParser.opt_if_exists`. * Enter a parse tree produced by `PostgreSQLParser.opt_if_exists`.
* @param ctx the parse tree * @param ctx the parse tree
@ -5224,17 +5101,6 @@ export interface PostgreSQLParserListener extends ParseTreeListener {
*/ */
exitTransform_element_list?: (ctx: Transform_element_listContext) => void; exitTransform_element_list?: (ctx: Transform_element_listContext) => void;
/**
* Enter a parse tree produced by `PostgreSQLParser.droptransformstmt`.
* @param ctx the parse tree
*/
enterDroptransformstmt?: (ctx: DroptransformstmtContext) => void;
/**
* Exit a parse tree produced by `PostgreSQLParser.droptransformstmt`.
* @param ctx the parse tree
*/
exitDroptransformstmt?: (ctx: DroptransformstmtContext) => void;
/** /**
* Enter a parse tree produced by `PostgreSQLParser.reindexstmt`. * Enter a parse tree produced by `PostgreSQLParser.reindexstmt`.
* @param ctx the parse tree * @param ctx the parse tree
@ -5521,17 +5387,6 @@ export interface PostgreSQLParserListener extends ParseTreeListener {
*/ */
exitAltersubscriptionstmt?: (ctx: AltersubscriptionstmtContext) => void; exitAltersubscriptionstmt?: (ctx: AltersubscriptionstmtContext) => void;
/**
* Enter a parse tree produced by `PostgreSQLParser.dropsubscriptionstmt`.
* @param ctx the parse tree
*/
enterDropsubscriptionstmt?: (ctx: DropsubscriptionstmtContext) => void;
/**
* Exit a parse tree produced by `PostgreSQLParser.dropsubscriptionstmt`.
* @param ctx the parse tree
*/
exitDropsubscriptionstmt?: (ctx: DropsubscriptionstmtContext) => void;
/** /**
* Enter a parse tree produced by `PostgreSQLParser.rulestmt`. * Enter a parse tree produced by `PostgreSQLParser.rulestmt`.
* @param ctx the parse tree * @param ctx the parse tree
@ -5840,17 +5695,6 @@ export interface PostgreSQLParserListener extends ParseTreeListener {
*/ */
exitAlterdatabasesetstmt?: (ctx: AlterdatabasesetstmtContext) => void; exitAlterdatabasesetstmt?: (ctx: AlterdatabasesetstmtContext) => void;
/**
* Enter a parse tree produced by `PostgreSQLParser.dropdbstmt`.
* @param ctx the parse tree
*/
enterDropdbstmt?: (ctx: DropdbstmtContext) => void;
/**
* Exit a parse tree produced by `PostgreSQLParser.dropdbstmt`.
* @param ctx the parse tree
*/
exitDropdbstmt?: (ctx: DropdbstmtContext) => void;
/** /**
* Enter a parse tree produced by `PostgreSQLParser.drop_option_list`. * Enter a parse tree produced by `PostgreSQLParser.drop_option_list`.
* @param ctx the parse tree * @param ctx the parse tree

View File

@ -33,7 +33,6 @@ import { AlterroutinestmtContext } from "./PostgreSQLParser";
import { Alter_routine_cluaseContext } from "./PostgreSQLParser"; import { Alter_routine_cluaseContext } from "./PostgreSQLParser";
import { Routine_action_listContext } from "./PostgreSQLParser"; import { Routine_action_listContext } from "./PostgreSQLParser";
import { Routine_actionContext } from "./PostgreSQLParser"; import { Routine_actionContext } from "./PostgreSQLParser";
import { DroprolestmtContext } from "./PostgreSQLParser";
import { CreategroupstmtContext } from "./PostgreSQLParser"; import { CreategroupstmtContext } from "./PostgreSQLParser";
import { AltergroupstmtContext } from "./PostgreSQLParser"; import { AltergroupstmtContext } from "./PostgreSQLParser";
import { Add_dropContext } from "./PostgreSQLParser"; import { Add_dropContext } from "./PostgreSQLParser";
@ -183,7 +182,6 @@ import { Opt_validatorContext } from "./PostgreSQLParser";
import { Opt_proceduralContext } from "./PostgreSQLParser"; import { Opt_proceduralContext } from "./PostgreSQLParser";
import { CreatetablespacestmtContext } from "./PostgreSQLParser"; import { CreatetablespacestmtContext } from "./PostgreSQLParser";
import { OpttablespaceownerContext } from "./PostgreSQLParser"; import { OpttablespaceownerContext } from "./PostgreSQLParser";
import { DroptablespacestmtContext } from "./PostgreSQLParser";
import { CreateextensionstmtContext } from "./PostgreSQLParser"; import { CreateextensionstmtContext } from "./PostgreSQLParser";
import { Create_extension_opt_listContext } from "./PostgreSQLParser"; import { Create_extension_opt_listContext } from "./PostgreSQLParser";
import { Create_extension_opt_itemContext } from "./PostgreSQLParser"; import { Create_extension_opt_itemContext } from "./PostgreSQLParser";
@ -215,7 +213,6 @@ import { Import_qualification_typeContext } from "./PostgreSQLParser";
import { Import_qualificationContext } from "./PostgreSQLParser"; import { Import_qualificationContext } from "./PostgreSQLParser";
import { CreateusermappingstmtContext } from "./PostgreSQLParser"; import { CreateusermappingstmtContext } from "./PostgreSQLParser";
import { Auth_identContext } from "./PostgreSQLParser"; import { Auth_identContext } from "./PostgreSQLParser";
import { DropusermappingstmtContext } from "./PostgreSQLParser";
import { AlterusermappingstmtContext } from "./PostgreSQLParser"; import { AlterusermappingstmtContext } from "./PostgreSQLParser";
import { CreatepolicystmtContext } from "./PostgreSQLParser"; import { CreatepolicystmtContext } from "./PostgreSQLParser";
import { AlterpolicystmtContext } from "./PostgreSQLParser"; import { AlterpolicystmtContext } from "./PostgreSQLParser";
@ -283,15 +280,9 @@ import { CreateopfamilystmtContext } from "./PostgreSQLParser";
import { AlteropfamilystmtContext } from "./PostgreSQLParser"; import { AlteropfamilystmtContext } from "./PostgreSQLParser";
import { Opclass_drop_listContext } from "./PostgreSQLParser"; import { Opclass_drop_listContext } from "./PostgreSQLParser";
import { Opclass_dropContext } from "./PostgreSQLParser"; import { Opclass_dropContext } from "./PostgreSQLParser";
import { DropopclassstmtContext } from "./PostgreSQLParser";
import { DropopfamilystmtContext } from "./PostgreSQLParser";
import { DropownedstmtContext } from "./PostgreSQLParser";
import { ReassignownedstmtContext } from "./PostgreSQLParser"; import { ReassignownedstmtContext } from "./PostgreSQLParser";
import { DropstmtContext } from "./PostgreSQLParser"; import { DropstmtContext } from "./PostgreSQLParser";
import { DropviewstmtContext } from "./PostgreSQLParser";
import { View_nameListContext } from "./PostgreSQLParser"; import { View_nameListContext } from "./PostgreSQLParser";
import { DropschemastmtContext } from "./PostgreSQLParser";
import { Object_type_any_name_listContext } from "./PostgreSQLParser";
import { Object_type_any_nameContext } from "./PostgreSQLParser"; import { Object_type_any_nameContext } from "./PostgreSQLParser";
import { Object_type_nameContext } from "./PostgreSQLParser"; import { Object_type_nameContext } from "./PostgreSQLParser";
import { Object_type_name_on_any_nameContext } from "./PostgreSQLParser"; import { Object_type_name_on_any_nameContext } from "./PostgreSQLParser";
@ -391,11 +382,9 @@ import { Dostmt_opt_listContext } from "./PostgreSQLParser";
import { Dostmt_opt_itemContext } from "./PostgreSQLParser"; import { Dostmt_opt_itemContext } from "./PostgreSQLParser";
import { CreatecaststmtContext } from "./PostgreSQLParser"; import { CreatecaststmtContext } from "./PostgreSQLParser";
import { Cast_contextContext } from "./PostgreSQLParser"; import { Cast_contextContext } from "./PostgreSQLParser";
import { DropcaststmtContext } from "./PostgreSQLParser";
import { Opt_if_existsContext } from "./PostgreSQLParser"; import { Opt_if_existsContext } from "./PostgreSQLParser";
import { CreatetransformstmtContext } from "./PostgreSQLParser"; import { CreatetransformstmtContext } from "./PostgreSQLParser";
import { Transform_element_listContext } from "./PostgreSQLParser"; import { Transform_element_listContext } from "./PostgreSQLParser";
import { DroptransformstmtContext } from "./PostgreSQLParser";
import { ReindexstmtContext } from "./PostgreSQLParser"; import { ReindexstmtContext } from "./PostgreSQLParser";
import { Reindex_target_typeContext } from "./PostgreSQLParser"; import { Reindex_target_typeContext } from "./PostgreSQLParser";
import { Reindex_target_multitableContext } from "./PostgreSQLParser"; import { Reindex_target_multitableContext } from "./PostgreSQLParser";
@ -422,7 +411,6 @@ import { CreatesubscriptionstmtContext } from "./PostgreSQLParser";
import { Publication_name_listContext } from "./PostgreSQLParser"; import { Publication_name_listContext } from "./PostgreSQLParser";
import { Publication_name_itemContext } from "./PostgreSQLParser"; import { Publication_name_itemContext } from "./PostgreSQLParser";
import { AltersubscriptionstmtContext } from "./PostgreSQLParser"; import { AltersubscriptionstmtContext } from "./PostgreSQLParser";
import { DropsubscriptionstmtContext } from "./PostgreSQLParser";
import { RulestmtContext } from "./PostgreSQLParser"; import { RulestmtContext } from "./PostgreSQLParser";
import { RuleactionlistContext } from "./PostgreSQLParser"; import { RuleactionlistContext } from "./PostgreSQLParser";
import { RuleactionmultiContext } from "./PostgreSQLParser"; import { RuleactionmultiContext } from "./PostgreSQLParser";
@ -451,7 +439,6 @@ import { Createdb_opt_nameContext } from "./PostgreSQLParser";
import { Opt_equalContext } from "./PostgreSQLParser"; import { Opt_equalContext } from "./PostgreSQLParser";
import { AlterdatabasestmtContext } from "./PostgreSQLParser"; import { AlterdatabasestmtContext } from "./PostgreSQLParser";
import { AlterdatabasesetstmtContext } from "./PostgreSQLParser"; import { AlterdatabasesetstmtContext } from "./PostgreSQLParser";
import { DropdbstmtContext } from "./PostgreSQLParser";
import { Drop_option_listContext } from "./PostgreSQLParser"; import { Drop_option_listContext } from "./PostgreSQLParser";
import { Drop_optionContext } from "./PostgreSQLParser"; import { Drop_optionContext } from "./PostgreSQLParser";
import { AltercollationstmtContext } from "./PostgreSQLParser"; import { AltercollationstmtContext } from "./PostgreSQLParser";
@ -1115,13 +1102,6 @@ export interface PostgreSQLParserVisitor<Result> extends ParseTreeVisitor<Result
*/ */
visitRoutine_action?: (ctx: Routine_actionContext) => Result; visitRoutine_action?: (ctx: Routine_actionContext) => Result;
/**
* Visit a parse tree produced by `PostgreSQLParser.droprolestmt`.
* @param ctx the parse tree
* @return the visitor result
*/
visitDroprolestmt?: (ctx: DroprolestmtContext) => Result;
/** /**
* Visit a parse tree produced by `PostgreSQLParser.creategroupstmt`. * Visit a parse tree produced by `PostgreSQLParser.creategroupstmt`.
* @param ctx the parse tree * @param ctx the parse tree
@ -2165,13 +2145,6 @@ export interface PostgreSQLParserVisitor<Result> extends ParseTreeVisitor<Result
*/ */
visitOpttablespaceowner?: (ctx: OpttablespaceownerContext) => Result; visitOpttablespaceowner?: (ctx: OpttablespaceownerContext) => Result;
/**
* Visit a parse tree produced by `PostgreSQLParser.droptablespacestmt`.
* @param ctx the parse tree
* @return the visitor result
*/
visitDroptablespacestmt?: (ctx: DroptablespacestmtContext) => Result;
/** /**
* Visit a parse tree produced by `PostgreSQLParser.createextensionstmt`. * Visit a parse tree produced by `PostgreSQLParser.createextensionstmt`.
* @param ctx the parse tree * @param ctx the parse tree
@ -2389,13 +2362,6 @@ export interface PostgreSQLParserVisitor<Result> extends ParseTreeVisitor<Result
*/ */
visitAuth_ident?: (ctx: Auth_identContext) => Result; visitAuth_ident?: (ctx: Auth_identContext) => Result;
/**
* Visit a parse tree produced by `PostgreSQLParser.dropusermappingstmt`.
* @param ctx the parse tree
* @return the visitor result
*/
visitDropusermappingstmt?: (ctx: DropusermappingstmtContext) => Result;
/** /**
* Visit a parse tree produced by `PostgreSQLParser.alterusermappingstmt`. * Visit a parse tree produced by `PostgreSQLParser.alterusermappingstmt`.
* @param ctx the parse tree * @param ctx the parse tree
@ -2865,27 +2831,6 @@ export interface PostgreSQLParserVisitor<Result> extends ParseTreeVisitor<Result
*/ */
visitOpclass_drop?: (ctx: Opclass_dropContext) => Result; visitOpclass_drop?: (ctx: Opclass_dropContext) => Result;
/**
* Visit a parse tree produced by `PostgreSQLParser.dropopclassstmt`.
* @param ctx the parse tree
* @return the visitor result
*/
visitDropopclassstmt?: (ctx: DropopclassstmtContext) => Result;
/**
* Visit a parse tree produced by `PostgreSQLParser.dropopfamilystmt`.
* @param ctx the parse tree
* @return the visitor result
*/
visitDropopfamilystmt?: (ctx: DropopfamilystmtContext) => Result;
/**
* Visit a parse tree produced by `PostgreSQLParser.dropownedstmt`.
* @param ctx the parse tree
* @return the visitor result
*/
visitDropownedstmt?: (ctx: DropownedstmtContext) => Result;
/** /**
* Visit a parse tree produced by `PostgreSQLParser.reassignownedstmt`. * Visit a parse tree produced by `PostgreSQLParser.reassignownedstmt`.
* @param ctx the parse tree * @param ctx the parse tree
@ -2900,13 +2845,6 @@ export interface PostgreSQLParserVisitor<Result> extends ParseTreeVisitor<Result
*/ */
visitDropstmt?: (ctx: DropstmtContext) => Result; visitDropstmt?: (ctx: DropstmtContext) => Result;
/**
* Visit a parse tree produced by `PostgreSQLParser.dropviewstmt`.
* @param ctx the parse tree
* @return the visitor result
*/
visitDropviewstmt?: (ctx: DropviewstmtContext) => Result;
/** /**
* Visit a parse tree produced by `PostgreSQLParser.view_nameList`. * Visit a parse tree produced by `PostgreSQLParser.view_nameList`.
* @param ctx the parse tree * @param ctx the parse tree
@ -2914,20 +2852,6 @@ export interface PostgreSQLParserVisitor<Result> extends ParseTreeVisitor<Result
*/ */
visitView_nameList?: (ctx: View_nameListContext) => Result; visitView_nameList?: (ctx: View_nameListContext) => Result;
/**
* Visit a parse tree produced by `PostgreSQLParser.dropschemastmt`.
* @param ctx the parse tree
* @return the visitor result
*/
visitDropschemastmt?: (ctx: DropschemastmtContext) => Result;
/**
* Visit a parse tree produced by `PostgreSQLParser.object_type_any_name_list`.
* @param ctx the parse tree
* @return the visitor result
*/
visitObject_type_any_name_list?: (ctx: Object_type_any_name_listContext) => Result;
/** /**
* Visit a parse tree produced by `PostgreSQLParser.object_type_any_name`. * Visit a parse tree produced by `PostgreSQLParser.object_type_any_name`.
* @param ctx the parse tree * @param ctx the parse tree
@ -3621,13 +3545,6 @@ export interface PostgreSQLParserVisitor<Result> extends ParseTreeVisitor<Result
*/ */
visitCast_context?: (ctx: Cast_contextContext) => Result; visitCast_context?: (ctx: Cast_contextContext) => Result;
/**
* Visit a parse tree produced by `PostgreSQLParser.dropcaststmt`.
* @param ctx the parse tree
* @return the visitor result
*/
visitDropcaststmt?: (ctx: DropcaststmtContext) => Result;
/** /**
* Visit a parse tree produced by `PostgreSQLParser.opt_if_exists`. * Visit a parse tree produced by `PostgreSQLParser.opt_if_exists`.
* @param ctx the parse tree * @param ctx the parse tree
@ -3649,13 +3566,6 @@ export interface PostgreSQLParserVisitor<Result> extends ParseTreeVisitor<Result
*/ */
visitTransform_element_list?: (ctx: Transform_element_listContext) => Result; visitTransform_element_list?: (ctx: Transform_element_listContext) => Result;
/**
* Visit a parse tree produced by `PostgreSQLParser.droptransformstmt`.
* @param ctx the parse tree
* @return the visitor result
*/
visitDroptransformstmt?: (ctx: DroptransformstmtContext) => Result;
/** /**
* Visit a parse tree produced by `PostgreSQLParser.reindexstmt`. * Visit a parse tree produced by `PostgreSQLParser.reindexstmt`.
* @param ctx the parse tree * @param ctx the parse tree
@ -3838,13 +3748,6 @@ export interface PostgreSQLParserVisitor<Result> extends ParseTreeVisitor<Result
*/ */
visitAltersubscriptionstmt?: (ctx: AltersubscriptionstmtContext) => Result; visitAltersubscriptionstmt?: (ctx: AltersubscriptionstmtContext) => Result;
/**
* Visit a parse tree produced by `PostgreSQLParser.dropsubscriptionstmt`.
* @param ctx the parse tree
* @return the visitor result
*/
visitDropsubscriptionstmt?: (ctx: DropsubscriptionstmtContext) => Result;
/** /**
* Visit a parse tree produced by `PostgreSQLParser.rulestmt`. * Visit a parse tree produced by `PostgreSQLParser.rulestmt`.
* @param ctx the parse tree * @param ctx the parse tree
@ -4041,13 +3944,6 @@ export interface PostgreSQLParserVisitor<Result> extends ParseTreeVisitor<Result
*/ */
visitAlterdatabasesetstmt?: (ctx: AlterdatabasesetstmtContext) => Result; visitAlterdatabasesetstmt?: (ctx: AlterdatabasesetstmtContext) => Result;
/**
* Visit a parse tree produced by `PostgreSQLParser.dropdbstmt`.
* @param ctx the parse tree
* @return the visitor result
*/
visitDropdbstmt?: (ctx: DropdbstmtContext) => Result;
/** /**
* Visit a parse tree produced by `PostgreSQLParser.drop_option_list`. * Visit a parse tree produced by `PostgreSQLParser.drop_option_list`.
* @param ctx the parse tree * @param ctx the parse tree

View File

@ -151,11 +151,14 @@ describe('Postgres SQL Token Suggestion', () => {
'TRANSFORM', 'TRANSFORM',
'TABLESPACE', 'TABLESPACE',
'SUBSCRIPTION', 'SUBSCRIPTION',
'VIEW',
'OWNED',
'CAST',
'INDEX', 'INDEX',
'DOMAIN', 'DOMAIN',
'TYPE', 'TYPE',
'RULE',
'TRIGGER', 'TRIGGER',
'RULE',
'POLICY', 'POLICY',
'SCHEMA', 'SCHEMA',
'SERVER', 'SERVER',
@ -166,16 +169,13 @@ describe('Postgres SQL Token Suggestion', () => {
'EXTENSION', 'EXTENSION',
'EVENT', 'EVENT',
'ACCESS', 'ACCESS',
'TABLE',
'SEQUENCE',
'VIEW',
'MATERIALIZED',
'COLLATION',
'CONVERSION',
'STATISTICS',
'TEXT', 'TEXT',
'OWNED', 'STATISTICS',
'CAST', 'CONVERSION',
'COLLATION',
'MATERIALIZED',
'SEQUENCE',
'TABLE',
]); ]);
}); });